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 fi
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf
fi fi
if [ ! `a2query -q -c ldap-account-manager` ]; then a2query -q -c ldap-account-manager || a2enconf -q ldap-account-manager
a2enconf -q ldap-account-manager
fi
restart="$restart $server" restart="$restart $server"
fi fi
;; ;;

View File

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