Skip to content

Commit

Permalink
remove: remove lxd-shutdown.conf systemd override
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Feb 5, 2025
1 parent d10c460 commit b16ac8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snapcraft/hooks/remove
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ done
# Stop workaround unit
nsenter -t 1 -m systemctl stop snap.lxd.workaround >/dev/null 2>&1 || true

SYSTEMD_OVERRIDE_DIR="/run/systemd/system/snap.lxd.daemon.service.d"
if [ -e "${SYSTEMD_OVERRIDE_DIR}/lxd-shutdown.conf" ]; then
rm "${SYSTEMD_OVERRIDE_DIR}/lxd-shutdown.conf" || true
rmdir --ignore-fail-on-non-empty "${SYSTEMD_OVERRIDE_DIR}"
nsenter -t 1 -m systemctl daemon-reload || true
fi

exit 0

0 comments on commit b16ac8f

Please sign in to comment.