summaryrefslogtreecommitdiffstats
path: root/debian/systemd.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:44 +0000
commit5c4ff5cee2b18c18b315c8887ab60e5b7940ae0b (patch)
tree52c412d94cd9319af800bb1ddda8d906136fbd0a /debian/systemd.postrm
parentMerging upstream version 256. (diff)
downloadsystemd-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.postrm5
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