From 80879444bcee5f8d7f1467993c651559ddb7d522 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Thu, 16 Apr 2020 10:34:11 -0400 Subject: [PATCH] cleanup ondemand.service symlink The ondemand.service is removed, so make sure to cleanup its symlink. --- debian/systemd.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/systemd.postinst b/debian/systemd.postinst index ec8e4bc7d..d996dea1c 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -145,4 +145,9 @@ if dpkg --compare-versions "$2" lt-nl "245.4-4~"; then rmdir --ignore-fail-on-non-empty /etc/systemd/system/systemd-remount-fs.service.wants 2> /dev/null || true fi +if dpkg --compare-versions "$2" lt-nl "245.4-5~"; then + # Clean up removed ondemand service + rm -f /etc/systemd/system/multi-user.target.wants/ondemand.service +fi + #DEBHELPER# -- 2.39.5