removed old conf.d support

This commit is contained in:
Roland Gruber 2017-04-17 11:16:38 +02:00
parent d7cb9f4b52
commit 02a69aace8
1 changed files with 4 additions and 7 deletions

View File

@ -56,6 +56,10 @@ if [ "$1" = "configure" ]; then
test -x /usr/sbin/$server || continue test -x /usr/sbin/$server || continue
case "$server" in case "$server" in
apache2) apache2)
if [ -h /etc/$server/conf.d/ldap-account-manager ]; then
rm -f /etc/$server/conf.d/ldap-account-manager
fi
if [ -d /etc/$server/mods-enabled ] && [ -d /etc/$server/mods-available ]; then if [ -d /etc/$server/mods-enabled ] && [ -d /etc/$server/mods-available ]; then
if [ -f /etc/$server/mods-available/php5.load ]; then if [ -f /etc/$server/mods-available/php5.load ]; then
if [ ! -f /etc/$server/mods-enabled/php5.load -a ! -h /etc/$server/mods-enabled/php5.load ]; then if [ ! -f /etc/$server/mods-enabled/php5.load -a ! -h /etc/$server/mods-enabled/php5.load ]; then
@ -68,13 +72,6 @@ if [ "$1" = "configure" ]; then
fi fi
fi fi
fi fi
if [ -d /etc/$server/conf.d -a ! -e /etc/$server/conf.d/ldap-account-manager ]; then
if [ -h /etc/$server/conf.d/ldap-account-manager ]; then
rm /etc/$server/conf.d/ldap-account-manager
fi
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 ] && [ -d /etc/$server/conf-enabled ]; then if [ -d /etc/$server/conf-available ] && [ -d /etc/$server/conf-enabled ]; then
if [ ! -e /etc/$server/conf-available/ldap-account-manager.conf ]; then if [ ! -e /etc/$server/conf-available/ldap-account-manager.conf ]; then
if [ -h /etc/$server/conf-available/ldap-account-manager.conf ]; then if [ -h /etc/$server/conf-available/ldap-account-manager.conf ]; then