From 4ccab0aa0d2ed45587be3f3b799b0f472dd65686 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Wed, 27 May 2015 17:14:50 +0200 Subject: [PATCH] debian: also work correclty when _all_ options have been disabled make #DEBHELPER# future-proof (now a no-op) --- debian/shellinabox.preinst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/shellinabox.preinst b/debian/shellinabox.preinst index 69092dc..00d98dc 100644 --- a/debian/shellinabox.preinst +++ b/debian/shellinabox.preinst @@ -10,10 +10,13 @@ set -e # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package +#DEBHELPER# + case "$1" in upgrade) # save old configuration 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 mkdir -p /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 ;; esac - -#DEBHELPER#