chore: fix env and better logs
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user