summaryrefslogtreecommitdiffstats
path: root/debian/bash-static.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:33:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:33:24 +0000
commit2d240c706fdccd408ed0ae47d59a98203f024d77 (patch)
treeba3d7ec67413ccec2cd03bd12993b1704642a7a6 /debian/bash-static.postrm
parentAdding upstream version 5.0. (diff)
downloadbash-debian.tar.xz
bash-debian.zip
Adding debian version 5.0-4.debian/5.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/bash-static.postrm21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/bash-static.postrm b/debian/bash-static.postrm
new file mode 100644
index 0000000..11c9ab4
--- /dev/null
+++ b/debian/bash-static.postrm
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+ upgrade|failed-upgrade|abort-install|abort-upgrade)
+ ;;
+ remove|purge|disappear)
+ if which remove-shell >/dev/null && [ -f /etc/shells ]; then
+ remove-shell /bin/bash-static
+ fi
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0