Update apache configuration templates

This commit is contained in:
2019-09-02 17:32:04 +02:00
parent 223e7cc2c6
commit 9dac24287e
6 changed files with 319 additions and 6 deletions

View File

@ -16,14 +16,14 @@ do
if [ -L /etc/nginx/sites-enabled/${SERVICE}-nginx.conf ];then
rm /etc/nginx/sites-enabled/${SERVICE}-nginx.conf
fi
if [ -L /etc/apache2/sites-enabled/${SERVICE}-apache2.conf ];then
a2dissite ${SERVICE}-apache2
if [ -L /etc/apache2/sites-enabled/${SERVICE}-apache2.4.conf ];then
a2dissite ${SERVICE}-apache2.4
fi
if [ "${ENABLE}" = 'oui' ];then
if [ "${SERVER}" = 'nginx' ];then
ln -s /etc/nginx/sites-available/${SERVICE}-nginx.conf /etc/nginx/sites-enabled/${SERVICE}-nginx.conf
elif [ "${SERVER}" = 'apache2' ];then
a2ensite ${SERVICE}-apache2.conf
a2ensite ${SERVICE}-apache2.4.conf
fi
fi
done