Skip to content

Commit 60c4b08

Browse files
authored
Check if RemoteIP module is already activated
1 parent 0684f3a commit 60c4b08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

upd/switch_rpath.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ if [ ! -e "/etc/apache2/mods-available/remoteip.load" ]; then
1111
exit
1212
fi
1313

14+
if [ -f "/etc/apache2/mods-enabled/remoteip.load" ]; then
15+
echo "RemoteIP is already activated"
16+
exit
17+
fi
18+
1419
# Disabling rpaf
1520
/usr/sbin/a2dismod rpaf > /dev/null 2>&1
1621
rm -f /etc/apache2/mods-enabled/rpaf.conf

0 commit comments

Comments
 (0)