Check if RemoteIP module is already activated

This commit is contained in:
dpeca 2016-11-16 19:02:17 +01:00 committed by GitHub
parent 0684f3af15
commit 60c4b08258

View file

@ -11,6 +11,11 @@ if [ ! -e "/etc/apache2/mods-available/remoteip.load" ]; then
exit
fi
if [ -f "/etc/apache2/mods-enabled/remoteip.load" ]; then
echo "RemoteIP is already activated"
exit
fi
# Disabling rpaf
/usr/sbin/a2dismod rpaf > /dev/null 2>&1
rm -f /etc/apache2/mods-enabled/rpaf.conf