File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 99# Variable&Function #
1010# ----------------------------------------------------------#
1111
12- # Argument defenition
12+ # Argument definition
1313user=$1
1414domain=$2
1515ip=$3
@@ -48,29 +48,31 @@ if [ -z "$ip" ]; then
4848fi
4949
5050# Web domain
51+ # Do Not restart at this point, will loose connection from API calls
5152if [ ! -z " $WEB_SYSTEM " ] && [ " $WEB_SYSTEM " != ' no' ]; then
52- $BIN /v-add-web-domain $user $domain $ip
53- retun_code =$?
53+ $BIN /v-add-web-domain $user $domain $ip no
54+ return_code =$?
5455fi
5556
5657# Proxy support
57- if [ ! -z " $PROXY_SYSTEM " ] && [ " $retun_code " -eq 0 ]; then
58- $BIN /v-add-web-domain-proxy $user $domain
58+ # Do Not restart at this point, will loose connection from API calls
59+ if [ ! -z " $PROXY_SYSTEM " ] && [ " $return_code " -eq 0 ]; then
60+ $BIN /v-add-web-domain-proxy $user $domain ' ' ' ' no
5961fi
6062
6163# DNS domain
6264if [ ! -z " $DNS_SYSTEM " ] && [ " $DNS_SYSTEM " != ' no' ]; then
63- if [ " $retun_code " -eq 0 ]; then
65+ if [ " $return_code " -eq 0 ]; then
6466 $BIN /v-add-dns-domain $user $domain $ip
65- retun_code =$?
67+ return_code =$?
6668 fi
6769fi
6870
6971# Mail domain
7072if [ ! -z " $MAIL_SYSTEM " ] && [ " $MAIL_SYSTEM " != ' no' ]; then
71- if [ " $retun_code " -eq 0 ]; then
73+ if [ " $return_code " -eq 0 ]; then
7274 $BIN /v-add-mail-domain $user $domain
73- retun_code =$?
75+ return_code =$?
7476 fi
7577fi
7678
7981# Vesta #
8082# ----------------------------------------------------------#
8183
82- exit $retun_code
84+ exit $return_code
You can’t perform that action at this time.
0 commit comments