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 686f0fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions snapcraft/hooks/remove
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ done
# Stop workaround unit
nsenter -t 1 -m systemctl stop snap.lxd.workaround >/dev/null 2>&1 || true

# Remove systemd override snippet
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 686f0fb

Please sign in to comment.