From 60c4b08258fcc599917fd2700581744f5a5fec2a Mon Sep 17 00:00:00 2001 From: dpeca Date: Wed, 16 Nov 2016 19:02:17 +0100 Subject: [PATCH] Check if RemoteIP module is already activated --- upd/switch_rpath.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upd/switch_rpath.sh b/upd/switch_rpath.sh index 3b082049..0872924e 100755 --- a/upd/switch_rpath.sh +++ b/upd/switch_rpath.sh @@ -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