fix apache2 and apache-ssl configuration

Closes: #1017
This commit is contained in:
Antoine Beaupré 2008-10-07 16:42:40 +00:00
parent d7ad37bc9e
commit 2e9a859a07
2 changed files with 14 additions and 14 deletions

View File

@ -168,29 +168,29 @@ EOF
alternc.install
if [ -x /usr/sbin/apache ]; then
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then
ln -sf /etc/alternc/apache-ssl.conf \
/etc/apache-ssl/conf.d/alternc.conf
fi
if [ ! -h /etc/apache/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then
ln -sf /etc/alternc/apache.conf \
/etc/apache/conf.d/alternc.conf
fi
if [ ! -h /etc/apache/conf.d/override_php.conf ]; then
if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then
ln -sf /var/alternc/apacheconf/override_php.conf \
/etc/apache/conf.d/override_php.conf
fi
fi
if [ -x /usr/sbin/apache2 ]; then
if [ ! -h /etc/apache2/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /etc/alternc/apache.conf \
/etc/apache/conf.d/alternc.conf
/etc/apache2/conf.d/alternc.conf
fi
if [ ! -h /etc/apache2/conf.d/override_php.conf ]; then
if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /var/alternc/apacheconf/override_php.conf \
/etc/apache/conf.d/override_php.conf
/etc/apache2/conf.d/override_php.conf
fi
fi

View File

@ -200,29 +200,29 @@ EOF
/usr/lib/alternc/basedir_prot.sh
if [ -x /usr/sbin/apache ]; then
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ] && [ -e /etc/apache-ssl/conf.d/ ]; then
ln -sf /etc/alternc/apache-ssl.conf \
/etc/apache-ssl/conf.d/alternc.conf
fi
if [ ! -h /etc/apache/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache/conf.d/alternc.conf ] && [ -e /etc/apache/conf.d/ ]; then
ln -sf /etc/alternc/apache.conf \
/etc/apache/conf.d/alternc.conf
fi
if [ ! -h /etc/apache/conf.d/override_php.conf ]; then
if [ ! -h /etc/apache/conf.d/override_php.conf ] && [ -e /etc/apache/conf.d/ ]; then
ln -sf /var/alternc/apacheconf/override_php.conf \
/etc/apache/conf.d/override_php.conf
fi
fi
if [ -x /usr/sbin/apache2 ]; then
if [ ! -h /etc/apache2/conf.d/alternc.conf ]; then
if [ ! -h /etc/apache2/conf.d/alternc.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /etc/alternc/apache.conf \
/etc/apache/conf.d/alternc.conf
/etc/apache2/conf.d/alternc.conf
fi
if [ ! -h /etc/apache2/conf.d/override_php.conf ]; then
if [ ! -h /etc/apache2/conf.d/override_php.conf ] && [ -e /etc/apache2/conf.d/ ]; then
ln -sf /var/alternc/apacheconf/override_php.conf \
/etc/apache/conf.d/override_php.conf
/etc/apache2/conf.d/override_php.conf
fi
fi