Fix Error Page Not Available on Success #191

script was calling CLI  v-add-web-domain and restarting by default so
scripts calling API will loose connection during HTTP Request
This commit is contained in:
estratos 2014-07-30 02:52:52 -06:00
commit f7bd734faa

View file

@ -48,14 +48,16 @@ if [ -z "$ip" ]; then
fi fi
# Web domain # Web domain
# Not restart at this point will loose conecction from API calls
if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then
$BIN/v-add-web-domain $user $domain $ip $BIN/v-add-web-domain $user $domain $ip no
retun_code=$? retun_code=$?
fi fi
# Proxy support # Proxy support
# Not restart at this point will loose conecction from API calls
if [ ! -z "$PROXY_SYSTEM" ] && [ "$retun_code" -eq 0 ]; then if [ ! -z "$PROXY_SYSTEM" ] && [ "$retun_code" -eq 0 ]; then
$BIN/v-add-web-domain-proxy $user $domain $BIN/v-add-web-domain-proxy $user $domain '' '' no
fi fi
# DNS domain # DNS domain