From f7bd734faadf071d2417d3209a2785e9e7fc5dd0 Mon Sep 17 00:00:00 2001 From: estratos Date: Wed, 30 Jul 2014 02:52:52 -0600 Subject: [PATCH] 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 --- bin/v-add-domain | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/v-add-domain b/bin/v-add-domain index 32e56214c..9000e72d7 100755 --- a/bin/v-add-domain +++ b/bin/v-add-domain @@ -48,14 +48,16 @@ if [ -z "$ip" ]; then fi # Web domain +# Not restart at this point will loose conecction from API calls 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=$? fi # Proxy support +# Not restart at this point will loose conecction from API calls 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 # DNS domain