changed conditions
This commit is contained in:
parent
6676cac168
commit
077f81be49
|
@ -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
|
||||
;;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue