be more failure tolerant

This commit is contained in:
Roland Gruber 2017-04-17 19:30:34 +02:00
parent 50b721c7ef
commit 6676cac168
1 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,10 @@
set -e set -e
if [ "$1" = "upgrade" ]; then
exit 0
fi
if [ -f /usr/share/debconf/confmodule ]; then if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ] db_version 2.0 || [ $? -lt 30 ]
@ -20,9 +24,9 @@ if [ -f /usr/share/debconf/confmodule ]; then
server=${server%,} server=${server%,}
case "$server" in case "$server" in
apache2) apache2)
set +e if [ `a2query -q -c ldap-account-manager` ]; then
a2disconf -q ldap-account-manager a2disconf -q ldap-account-manager
set -e fi
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"