Subroutine for mod_remoteip in /bin/v-delete-sys-ip

This commit is contained in:
dpeca 2016-10-26 04:26:50 +02:00 committed by GitHub
commit e91f5c6da8

View file

@ -99,6 +99,12 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
new_ips=$(echo "$rpaf_str" | sed "s/$ip//")
sed -i "s/$ips/$new_ips/g" $rpaf_conf
fi
#mod_remoteip
remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
if [ -e "$remoteip_conf" ]; then
sed -i "s/RemoteIPInternalProxy $ip//g" $remoteip_conf
fi
fi