fixed 416886
This commit is contained in:
parent
671c1ba6ff
commit
888267e7d0
|
@ -2,42 +2,45 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
if [ -f /usr/share/debconf/confmodule ]; then
|
||||||
db_version 2.0 || [ $? -lt 30 ]
|
. /usr/share/debconf/confmodule
|
||||||
|
db_version 2.0 || [ $? -lt 30 ]
|
||||||
|
|
||||||
db_get "ldap-account-manager/config-webserver"
|
db_get "ldap-account-manager/config-webserver"
|
||||||
webservers="$RET"
|
webservers="$RET"
|
||||||
restart=""
|
restart=""
|
||||||
for server in $webservers; do
|
for server in $webservers; do
|
||||||
server=${server%,}
|
server=${server%,}
|
||||||
case "$server" in
|
case "$server" in
|
||||||
apache|apache-perl|apache-ssl|apache2)
|
apache|apache-perl|apache-ssl|apache2)
|
||||||
rm -f /etc/$server/conf.d/ldap-account-manager
|
rm -f /etc/$server/conf.d/ldap-account-manager
|
||||||
test -x /usr/sbin/$server || continue
|
test -x /usr/sbin/$server || continue
|
||||||
restart="$restart $server"
|
restart="$restart $server"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
db_get "ldap-account-manager/restart-webserver"
|
db_get "ldap-account-manager/restart-webserver"
|
||||||
if [ "$RET" = "true" ]; then
|
if [ "$RET" = "true" ]; then
|
||||||
for server in $restart; do
|
for server in $restart; do
|
||||||
server=${server%,}
|
server=${server%,}
|
||||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||||
invoke-rc.d $server restart
|
invoke-rc.d $server restart
|
||||||
else
|
else
|
||||||
/etc/init.d/$server restart
|
/etc/init.d/$server restart
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "purge" ]; then
|
if [ "$1" = "purge" ]; then
|
||||||
rm -r -f /usr/share/ldap-account-manager; rm -r -f /var/lib/ldap-account-manager; fi
|
rm -r -f /usr/share/ldap-account-manager; rm -r -f /var/lib/ldap-account-manager; fi
|
||||||
|
|
||||||
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
|
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
|
||||||
db_purge
|
db_purge
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
db_stop
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
db_stop
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue