debian: also work correclty when _all_ options have been disabled

make #DEBHELPER# future-proof (now a no-op)
This commit is contained in:
Alexandre Detiste 2015-05-27 17:14:50 +02:00
parent f77c7d06a5
commit 4ccab0aa0d

View file

@ -10,10 +10,13 @@ set -e
# for details, see http://www.debian.org/doc/debian-policy/ or # for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package # the debian-policy package
#DEBHELPER#
case "$1" in case "$1" in
upgrade) upgrade)
# save old configuration # save old configuration
test -d /etc/shellinabox/options-enabled || exit 0 test -d /etc/shellinabox/options-enabled || exit 0
ls /etc/shellinabox/options-enabled/*.css > /dev/null 2>&1 || exit 0
if dpkg --compare-versions "$2" le "2.14-1"; then if dpkg --compare-versions "$2" le "2.14-1"; then
mkdir -p /etc/shellinabox/options-enabled-save mkdir -p /etc/shellinabox/options-enabled-save
cp -a /etc/shellinabox/options-enabled/*.css /etc/shellinabox/options-enabled-save cp -a /etc/shellinabox/options-enabled/*.css /etc/shellinabox/options-enabled-save
@ -28,5 +31,3 @@ case "$1" in
exit 1 exit 1
;; ;;
esac esac
#DEBHELPER#