debian: also work correclty when _all_ options have been disabled
make #DEBHELPER# future-proof (now a no-op)
This commit is contained in:
parent
f77c7d06a5
commit
4ccab0aa0d
1 changed files with 3 additions and 2 deletions
5
debian/shellinabox.preinst
vendored
5
debian/shellinabox.preinst
vendored
|
@ -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#
|
|
||||||
|
|
Loading…
Reference in a new issue