From d04156aa0dd696d5205472fbe174b1dc363ca5c3 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Thu, 6 Aug 2026 14:14:18 +0200 Subject: [PATCH] chore: fix env and better logs --- .gitea/scripts/deploy-service.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/scripts/deploy-service.sh b/.gitea/scripts/deploy-service.sh index 0444158..1679cda 100755 --- a/.gitea/scripts/deploy-service.sh +++ b/.gitea/scripts/deploy-service.sh @@ -54,9 +54,12 @@ fi mkdir -p ${HOME}/.config/systemd/user ln -sf "${SYSTEMD_UNIT_FILE_PATH}" "${HOME}/.config/systemd/user/${SYSTEMD_UNIT_NAME}" -caput "AGEBD-ALH:${SERVICE_NAME_UPPER}-VERSION-DEPLOYED" "${NOW}" +VERSION_DEPLOYED_PV="AGEBD-ALH${AGEBD_ENV_SUFFIX_UPPER}:${SERVICE_NAME_UPPER}-VERSION-DEPLOYED" +echo "Putting ${NOW} in ${VERSION_DEPLOYED_PV}" +caput "${VERSION_DEPLOYED_PV}" "${NOW}" if [ "$DO_RESTART_SERVICE" ]; then + echo "Enabling and restarting systemd service ${SYSTEMD_UNIT_NAME}" export XDG_RUNTIME_DIR="/run/user/$(id -u)" systemctl --user daemon-reload systemctl --user enable "${SYSTEMD_UNIT_NAME}"