summaryrefslogtreecommitdiffstats
path: root/debian/screen.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:30:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:30:44 +0000
commit1d1b5c2a2854ce0385a89401c504711270c6f7a3 (patch)
tree045f1bf9d39fb409f8f9bc1a46ce2f8ee8c67908 /debian/screen.postrm
parentAdding upstream version 4.9.1. (diff)
downloadscreen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.tar.xz
screen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.zip
Adding debian version 4.9.1-1.debian/4.9.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/screen.postrm')
-rw-r--r--debian/screen.postrm16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/screen.postrm b/debian/screen.postrm
new file mode 100644
index 0000000..abc28ff
--- /dev/null
+++ b/debian/screen.postrm
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = purge ] || [ "$1" = remove ]; then
+ rm -rf /run/screen
+fi
+
+if [ "$1" = purge ]; then
+ rm -vf /etc/tmpfiles.d/screen-cleanup.conf
+
+ # LP #1462692
+ rm -f /lib/systemd/system/screen-cleanup.service
+ rmdir -p --ignore-fail-on-non-empty /lib/systemd/system
+fi
+
+#DEBHELPER#