Apache 2.4 changes

This commit is contained in:
Roland Gruber 2013-07-19 20:45:57 +00:00
parent f90539a563
commit 163cd79b82
2 changed files with 15 additions and 4 deletions

View File

@ -80,12 +80,21 @@ if [ "$1" = "configure" ]; then
fi
fi
fi
;;
esac
if [ ! -f /etc/$server/conf.d/ldap-account-manager -a ! -h /etc/$server/conf.d/ldap-account-manager ]; then
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
done
db_get "ldap-account-manager/restart-webserver"
if [ "$RET" = "true" ]; then

View File

@ -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"
;;