be more failure tolerant
This commit is contained in:
parent
50b721c7ef
commit
6676cac168
|
@ -2,6 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
if [ "$1" = "upgrade" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/debconf/confmodule ]; then
|
||||
. /usr/share/debconf/confmodule
|
||||
db_version 2.0 || [ $? -lt 30 ]
|
||||
|
@ -20,9 +24,9 @@ if [ -f /usr/share/debconf/confmodule ]; then
|
|||
server=${server%,}
|
||||
case "$server" in
|
||||
apache2)
|
||||
set +e
|
||||
a2disconf -q ldap-account-manager
|
||||
set -e
|
||||
if [ `a2query -q -c ldap-account-manager` ]; then
|
||||
a2disconf -q ldap-account-manager
|
||||
fi
|
||||
rm -f /etc/$server/conf-available/ldap-account-manager.conf
|
||||
test -x /usr/sbin/$server || continue
|
||||
restart="$restart $server"
|
||||
|
|
Loading…
Reference in New Issue