proper condition nginx config change

This commit is contained in:
Serghey Rodin 2013-06-04 12:52:07 +03:00
commit b470605033

View file

@ -95,11 +95,11 @@ else
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf" tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf" conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
mv $tmp_conf $conf mv $tmp_conf $conf
fi
proxy_include=$(grep "$conf" $proxy_conf ) proxy_include=$(grep "$conf" $proxy_conf )
if [ -z "$proxy_include" ]; then if [ -z "$proxy_include" ]; then
echo "include $conf;" >> $proxy_conf echo "include $conf;" >> $proxy_conf
fi fi
fi
# Checking SSL proxy # Checking SSL proxy
if [ "$proxy_change" = 'yes' ] && [ "$ssl_change" = 'yes' ]; then if [ "$proxy_change" = 'yes' ] && [ "$ssl_change" = 'yes' ]; then