Parcourir la source

Check if RemoteIP module is already activated

dpeca il y a 9 ans
Parent
commit
60c4b08258
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      upd/switch_rpath.sh

+ 5 - 0
upd/switch_rpath.sh

@@ -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