fixed return code

This commit is contained in:
Roland Gruber 2017-04-17 19:12:11 +02:00
parent 7919b3f150
commit 50b721c7ef
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,10 @@
set -e
if [ "$1" != "configure" ]; then
exit 0
fi
. /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ]
@ -66,8 +70,7 @@ if [ "$1" = "configure" ]; then
fi
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf
fi
a2query -q -c ldap-account-manager
if [ $? -ne 0 ]; then
if [ ! `a2query -q -c ldap-account-manager` ]; then
a2enconf -q ldap-account-manager
fi
restart="$restart $server"