diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:44 +0000 |
commit | 5c4ff5cee2b18c18b315c8887ab60e5b7940ae0b (patch) | |
tree | 52c412d94cd9319af800bb1ddda8d906136fbd0a /debian/systemd.postrm | |
parent | Merging upstream version 256. (diff) | |
download | systemd-5c4ff5cee2b18c18b315c8887ab60e5b7940ae0b.tar.xz systemd-5c4ff5cee2b18c18b315c8887ab60e5b7940ae0b.zip |
Adding debian version 256-1.debian/256-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 |