mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Added check to see if mod_remoteip is installed
Sorry because I forgot to add it in previous commit
This commit is contained in:
parent
579b1acd80
commit
3aeec7ce74
1 changed files with 4 additions and 2 deletions
|
@ -145,8 +145,10 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
|
|
||||||
#mod_remoteip
|
#mod_remoteip
|
||||||
remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
|
remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
|
||||||
if [ $( grep -ic "$ip" $remoteip_conf ) -eq 0 ]; then
|
if [ -e "$remoteip_conf" ]; then
|
||||||
sed -i "s/<\/IfModule>/RemoteIPInternalProxy $ip\n<\/IfModule>/g" $remoteip_conf
|
if [ $( grep -ic "$ip" $remoteip_conf ) -eq 0 ]; then
|
||||||
|
sed -i "s/<\/IfModule>/RemoteIPInternalProxy $ip\n<\/IfModule>/g" $remoteip_conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue