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