We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579b1ac commit 3aeec7cCopy full SHA for 3aeec7c
bin/v-add-sys-ip
@@ -145,8 +145,10 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
145
146
#mod_remoteip
147
remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
148
- if [ $( grep -ic "$ip" $remoteip_conf ) -eq 0 ]; then
149
- sed -i "s/<\/IfModule>/RemoteIPInternalProxy $ip\n<\/IfModule>/g" $remoteip_conf
+ if [ -e "$remoteip_conf" ]; then
+ if [ $( grep -ic "$ip" $remoteip_conf ) -eq 0 ]; then
150
+ sed -i "s/<\/IfModule>/RemoteIPInternalProxy $ip\n<\/IfModule>/g" $remoteip_conf
151
+ fi
152
fi
153
154
0 commit comments