changed conditions

This commit is contained in:
Roland Gruber 2017-04-17 19:53:07 +02:00
parent 6676cac168
commit 077f81be49
2 changed files with 4 additions and 6 deletions

View File

@ -70,9 +70,7 @@ if [ "$1" = "configure" ]; then
fi
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf
fi
if [ ! `a2query -q -c ldap-account-manager` ]; then
a2enconf -q ldap-account-manager
fi
a2query -q -c ldap-account-manager || a2enconf -q ldap-account-manager
restart="$restart $server"
fi
;;

View File

@ -24,9 +24,9 @@ if [ -f /usr/share/debconf/confmodule ]; then
server=${server%,}
case "$server" in
apache2)
if [ `a2query -q -c ldap-account-manager` ]; then
a2disconf -q ldap-account-manager
fi
set +e
a2query -q -c ldap-account-manager && a2disconf -q ldap-account-manager
set -e
rm -f /etc/$server/conf-available/ldap-account-manager.conf
test -x /usr/sbin/$server || continue
restart="$restart $server"