Skip to content

Commit f7bd734

Browse files
committed
Fix Error Page Not Available on Success hestiacp#191
script was calling CLI v-add-web-domain and restarting by default so scripts calling API will loose connection during HTTP Request
1 parent 065e66c commit f7bd734

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/v-add-domain

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@ if [ -z "$ip" ]; then
4848
fi
4949

5050
# Web domain
51+
# Not restart at this point will loose conecction from API calls
5152
if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then
52-
$BIN/v-add-web-domain $user $domain $ip
53+
$BIN/v-add-web-domain $user $domain $ip no
5354
retun_code=$?
5455
fi
5556

5657
# Proxy support
58+
# Not restart at this point will loose conecction from API calls
5759
if [ ! -z "$PROXY_SYSTEM" ] && [ "$retun_code" -eq 0 ]; then
58-
$BIN/v-add-web-domain-proxy $user $domain
60+
$BIN/v-add-web-domain-proxy $user $domain '' '' no
5961
fi
6062

6163
# DNS domain

0 commit comments

Comments
 (0)