A partir d'Apache 2.4 il faut déconfigurer avec a2 disconf

This commit is contained in:
kent1 2017-09-04 16:29:17 +02:00 committed by Benjamin Sonntag
parent bae2649740
commit 41621c8117
1 changed files with 10 additions and 2 deletions

View File

@ -81,9 +81,17 @@ EOF
echo " Done" echo " Done"
echo "Deconfiguring javascript-common alias" echo "Deconfiguring javascript-common alias"
rm -f /etc/apache2/conf.d/javascript-common.conf if [ -f /etc/apache2/conf.d/javascript-common.conf ]; then
rm -f /etc/apache2/conf.d/javascript-common.conf
fi
if [ -f /etc/apache2/conf-available/javascript-common.conf ] ; then
a2disconf javascript-common.conf
service apache2 reload
fi
# just in case # just in case
sed -i -e "s/^Alias \/javascript/# Do not uncomment, commented by AlternC to prevent a global alias\n#Alias \/javascript/" /etc/javascript-common/javascript-common.conf if [ -f /etc/javascript-common/javascript-common.conf ]; then
sed -i -e "s/^Alias \/javascript/# Do not uncomment, commented by AlternC to prevent a global alias\n#Alias \/javascript/" /etc/javascript-common/javascript-common.conf
fi
echo " Done" echo " Done"
fi fi