removed unnecessary sed expr defenition

This commit is contained in:
Serghey Rodin 2013-10-27 13:54:31 +02:00
commit 861585bcca
30 changed files with 74 additions and 74 deletions

View file

@ -81,7 +81,7 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
fw_conf="/etc/$WEB_SYSTEM/conf.d/mod_extract_forwarded.conf"
if [ -e "$fw_conf" ]; then
ips=$(grep 'MEFaccept 127.0.0.1' $fw_conf)
new_ips=$(echo "$ips" | sed -e "s/$ip//" )
new_ips=$(echo "$ips" | sed "s/$ip//" )
sed -i "s/$ips/$new_ips/g" $fw_conf
fi
@ -89,7 +89,7 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
rpaf_conf="/etc/$WEB_SYSTEM/mods-enabled/rpaf.conf"
if [ -e "$rpaf_conf" ]; then
ips=$(grep RPAFproxy_ips $rpaf_conf)
new_ips=$(echo "$rpaf_str" | sed -e "s/$ip//")
new_ips=$(echo "$rpaf_str" | sed "s/$ip//")
sed -i "s/$ips/$new_ips/g" $rpaf_conf
fi