diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-09 10:16:24 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-09 10:29:52 -0700 |
commit | 339f61eee5a7b57955c29c37c88fff9b772b9e0a (patch) | |
tree | 1b8f41d55b660ad6ba63333a67eda0e9e4be1cd9 /debian | |
parent | 4bff79ebc8372329f8c1dd4f97a5b9a8d5c06eb6 (diff) | |
download | vyatta-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.postrm | 20 |
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# |