diff options
Diffstat (limited to 'debian/systemd.postrm')
-rw-r--r-- | debian/systemd.postrm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/systemd.postrm b/debian/systemd.postrm index d03da26..ddf7c0e 100644 --- a/debian/systemd.postrm +++ b/debian/systemd.postrm @@ -14,6 +14,11 @@ case "$1" in rmdir --ignore-fail-on-non-empty /etc/systemd/system/multi-user.target.wants 2> /dev/null || true rmdir --ignore-fail-on-non-empty /etc/systemd/system/sysinit.target.wants 2> /dev/null || true + # If we created tmp.conf for compatibility with pre-Trixie, remove it (it is intentionally orphaned) + if [ -f /etc/tmpfiles.d/tmp.conf ] && [ "$(cat /etc/tmpfiles.d/tmp.conf)" = "D /tmp 1777 root root -" ]; then + rm -f /etc/tmpfiles.d/tmp.conf + fi + rm -f /var/lib/systemd/catalog/database rmdir --ignore-fail-on-non-empty /var/lib/systemd/catalog 2> /dev/null || true |