mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue