summaryrefslogtreecommitdiffstats
path: root/debian/screen.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:46:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:46:01 +0000
commitf99ae3f90a40cab5ac45a299e82a8987b7264eab (patch)
tree46554594be2eb10da0f510e9135526d680637f6f /debian/screen.postrm
parentAdding upstream version 4.8.0. (diff)
downloadscreen-debian/4.8.0-6.tar.xz
screen-debian/4.8.0-6.zip
Adding debian version 4.8.0-6.debian/4.8.0-6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/screen.postrm')
-rw-r--r--debian/screen.postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/screen.postrm b/debian/screen.postrm
new file mode 100644
index 0000000..457a0dc
--- /dev/null
+++ b/debian/screen.postrm
@@ -0,0 +1,20 @@
+#!/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
+
+if [ "$1" = disappear ]; then
+ remove-shell /usr/bin/screen || true
+fi
+
+#DEBHELPER#