mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Check if RemoteIP module is already activated
This commit is contained in:
parent
0684f3af15
commit
60c4b08258
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ if [ ! -e "/etc/apache2/mods-available/remoteip.load" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f "/etc/apache2/mods-enabled/remoteip.load" ]; then
|
||||||
|
echo "RemoteIP is already activated"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Disabling rpaf
|
# Disabling rpaf
|
||||||
/usr/sbin/a2dismod rpaf > /dev/null 2>&1
|
/usr/sbin/a2dismod rpaf > /dev/null 2>&1
|
||||||
rm -f /etc/apache2/mods-enabled/rpaf.conf
|
rm -f /etc/apache2/mods-enabled/rpaf.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue