Apache 2.4 changes
This commit is contained in:
parent
f90539a563
commit
163cd79b82
|
@ -80,12 +80,21 @@ if [ "$1" = "configure" ]; then
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
if [ -d /etc/$server/conf.d -a ! -e /etc/$server/conf.d/ldap-account-manager ]; then
|
||||
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf.d/ldap-account-manager
|
||||
restart="$restart $server"
|
||||
fi
|
||||
if [ -d /etc/$server/conf-available ]; then
|
||||
if [ ! -e /etc/$server/conf-available/ldap-account-manager ]; then
|
||||
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager
|
||||
fi
|
||||
if [ ! -e /etc/$server/conf-enabled/ldap-account-manager ]; then
|
||||
ln -s ../conf-available/ldap-account-manager /etc/$server/conf-enabled/ldap-account-manager
|
||||
fi
|
||||
restart="$restart $server"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if [ ! -f /etc/$server/conf.d/ldap-account-manager -a ! -h /etc/$server/conf.d/ldap-account-manager ]; then
|
||||
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf.d/ldap-account-manager
|
||||
restart="$restart $server"
|
||||
fi
|
||||
done
|
||||
db_get "ldap-account-manager/restart-webserver"
|
||||
if [ "$RET" = "true" ]; then
|
||||
|
|
|
@ -22,6 +22,8 @@ if [ -f /usr/share/debconf/confmodule ]; then
|
|||
case "$server" in
|
||||
apache2)
|
||||
rm -f /etc/$server/conf.d/ldap-account-manager
|
||||
rm -f /etc/$server/conf-available/ldap-account-manager
|
||||
rm -f /etc/$server/conf-enabled/ldap-account-manager
|
||||
test -x /usr/sbin/$server || continue
|
||||
restart="$restart $server"
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue