check for nginxless setup

This commit is contained in:
Serghey Rodin 2014-02-18 01:09:40 +02:00
commit bf5fdaf8e2

View file

@ -43,13 +43,17 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$PROXY'
get_domain_values 'web'
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
del_web_config
if [ ! -z "$PROXY_SYSTEM" ]; then
del_web_config
fi
# Checking SSL
if [ "$SSL" = 'yes' ]; then
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.stpl"
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
del_web_config
if [ ! -z "$PROXY_SYSTEM" ]; then
del_web_config
fi
fi
@ -61,6 +65,9 @@ fi
update_object_value 'web' 'DOMAIN' "$domain" '$PROXY' ''
update_object_value 'web' 'DOMAIN' "$domain" '$PROXY_EXT' ''
if [ -z "$PROXY_SYSTEM" ]; then
exit
fi
# Checking last SSL proxy
conf="/etc/$PROXY_SYSTEM/conf.d/vesta.conf"