summaryrefslogtreecommitdiff
path: root/debian/zsh.postinst
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2017-04-11 21:12:27 +0200
committerAxel Beckert <abe@deuxchevaux.org>2017-04-11 21:13:10 +0200
commit5c3b52b8cb20cc63a0594567d1bab5e517e32a6f (patch)
treec388ec4a99fa8cf0512292abc9467a0ffab1e3bd /debian/zsh.postinst
parent7f2b2e0469afc81fa6dbcdcb0548ebbf461513cd (diff)
downloadzsh-5c3b52b8cb20cc63a0594567d1bab5e517e32a6f.tar.gz
zsh-5c3b52b8cb20cc63a0594567d1bab5e517e32a6f.zip
Reorder zsh.postinst: do alternatives removal before (re)creating /usr/bin/zsh symlink
Closes: #860033 Thanks: ilf for the bug report and Adrian Bunk for finding the right solution.
Diffstat (limited to 'debian/zsh.postinst')
-rw-r--r--debian/zsh.postinst16
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/zsh.postinst b/debian/zsh.postinst
index 65a4d3141..273d43882 100644
--- a/debian/zsh.postinst
+++ b/debian/zsh.postinst
@@ -2,6 +2,14 @@
set -e
+# ksh alternatives
+update-alternatives --remove ksh /usr/bin/zsh
+update-alternatives --remove ksh /bin/zsh4
+
+# Remove alternatives system for zsh in general
+update-alternatives --remove zsh /bin/zsh5
+update-alternatives --remove rzsh /bin/zsh5
+
case "$1" in
(configure)
add-shell /bin/zsh
@@ -23,14 +31,6 @@ case "$1" in
;;
esac
-# ksh alternatives
-update-alternatives --remove ksh /usr/bin/zsh
-update-alternatives --remove ksh /bin/zsh4
-
-# Remove alternatives system for zsh in general
-update-alternatives --remove zsh /bin/zsh5
-update-alternatives --remove rzsh /bin/zsh5
-
#DEBHELPER#
exit 0