]> git.proxmox.com Git - systemd.git/commitdiff
cleanup ondemand.service symlink
authorDan Streetman <ddstreet@canonical.com>
Thu, 16 Apr 2020 14:34:11 +0000 (10:34 -0400)
committerDan Streetman <ddstreet@canonical.com>
Sat, 18 Apr 2020 13:39:33 +0000 (09:39 -0400)
The ondemand.service is removed, so make sure to cleanup its symlink.

debian/systemd.postinst

index ec8e4bc7dfe50721618d3a5eb592878b83477b82..d996dea1c1333377311b212155337f699ed1bfe5 100644 (file)
@@ -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#