summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 10:16:24 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 10:29:52 -0700
commit339f61eee5a7b57955c29c37c88fff9b772b9e0a (patch)
tree1b8f41d55b660ad6ba63333a67eda0e9e4be1cd9 /debian
parent4bff79ebc8372329f8c1dd4f97a5b9a8d5c06eb6 (diff)
downloadvyatta-bash-339f61eee5a7b57955c29c37c88fff9b772b9e0a.tar.gz
vyatta-bash-339f61eee5a7b57955c29c37c88fff9b772b9e0a.zip
Don't remove vbash from /etc/shells during upgrade
This postrm script is clone of bash.postrm
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-bash.postrm20
1 files changed, 16 insertions, 4 deletions
diff --git a/debian/vyatta-bash.postrm b/debian/vyatta-bash.postrm
index 3d77a51..7039466 100644
--- a/debian/vyatta-bash.postrm
+++ b/debian/vyatta-bash.postrm
@@ -1,8 +1,20 @@
-#! /bin/sh -e
+#! /bin/sh
-if [ -x /usr/sbin/remove-shell ]; then
- /usr/sbin/remove-shell /bin/vbash
-fi
+set -e
+
+case "$1" in
+ upgrade|failed-upgrade|abort-install|abort-upgrade)
+ ;;
+ remove|purge|disappear)
+ if [ -x /usr/sbin/remove-shell ] && [ -f /etc/shells ]; then
+ /usr/sbin/remove-shell /bin/vbash
+ fi
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
#DEBHELPER#