better link handling
This commit is contained in:
parent
ad2002c3e1
commit
8511a05a72
|
@ -72,21 +72,25 @@ if [ "$1" = "configure" ]; then
|
|||
ln -s /etc/$server/mods-available/php5.conf /etc/$server/mods-enabled/php5.conf
|
||||
fi
|
||||
fi
|
||||
if [ -f /etc/$server/mods-available/version.load ]; then
|
||||
if [ ! -f /etc/$server/mods-enabled/version.load -a ! -h /etc/$server/mods-enabled/version.load ]; then
|
||||
ln -s /etc/$server/mods-available/version.load /etc/$server/mods-enabled/version.load
|
||||
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 [ ! -e /etc/$server/conf-available/ldap-account-manager ]; then
|
||||
if [ ! -e /etc/$server/conf-available/ldap-account-manager.conf ]; then
|
||||
if [ -h /etc/$server/conf-available/ldap-account-manager.conf ]; then
|
||||
rm /etc/$server/conf-available/ldap-account-manager.conf
|
||||
fi
|
||||
ln -s /etc/ldap-account-manager/apache.conf /etc/$server/conf-available/ldap-account-manager.conf
|
||||
fi
|
||||
if [ ! -e /etc/$server/conf-enabled/ldap-account-manager.conf ]; then
|
||||
if [ -h /etc/$server/conf-enabled/ldap-account-manager.conf ]; then
|
||||
rm /etc/$server/conf-enabled/ldap-account-manager.conf
|
||||
fi
|
||||
ln -s ../conf-available/ldap-account-manager.conf /etc/$server/conf-enabled/ldap-account-manager.conf
|
||||
fi
|
||||
restart="$restart $server"
|
||||
|
|
Loading…
Reference in New Issue