@@ -24,7 +24,6 @@ source $VESTA/conf/vesta.conf
2424# ----------------------------------------------------------#
2525# Verifications #
2626# ----------------------------------------------------------#
27-
2827check_args ' 2' " $# " ' USER DOMAIN [IP] [RESTART]'
2928validate_format ' user' ' domain'
3029if [ ! -z " $ip " ] ; then
@@ -49,14 +48,12 @@ if [ -z "$ip" ]; then
4948fi
5049
5150# Web domain
52- # Do Not restart at this point, will loose connection from API calls
53- if [ ! -z " $WEB_SYSTEM " ] && [ " $WEB_SYSTEM " != ' no' ]; then
51+ if [ ! -z " $WEB_SYSTEM " ]; then
5452 $BIN /v-add-web-domain $user $domain $ip ' no'
5553 return_code=$?
5654fi
5755
5856# Proxy support
59- # Do Not restart at this point, will loose connection from API calls
6057if [ ! -z " $PROXY_SYSTEM " ] && [ " $return_code " -eq 0 ]; then
6158 extentions=" jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls"
6259 extentions=" $extentions ,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav"
@@ -65,19 +62,15 @@ if [ ! -z "$PROXY_SYSTEM" ] && [ "$return_code" -eq 0 ]; then
6562fi
6663
6764# DNS domain
68- if [ ! -z " $DNS_SYSTEM " ] && [ " $DNS_SYSTEM " != ' no' ]; then
69- if [ " $return_code " -eq 0 ]; then
70- $BIN /v-add-dns-domain $user $domain $ip ' no'
71- return_code=$?
72- fi
65+ if [ ! -z " $DNS_SYSTEM " ] && [ " $return_code " -eq 0 ]; then
66+ $BIN /v-add-dns-domain $user $domain $ip ' no'
67+ return_code=$?
7368fi
7469
7570# Mail domain
76- if [ ! -z " $MAIL_SYSTEM " ] && [ " $MAIL_SYSTEM " != ' no' ]; then
77- if [ " $return_code " -eq 0 ]; then
78- $BIN /v-add-mail-domain $user $domain
79- return_code=$?
80- fi
71+ if [ ! -z " $MAIL_SYSTEM " ] && [ " $return_code " -eq 0 ]; then
72+ $BIN /v-add-mail-domain $user $domain
73+ return_code=$?
8174fi
8275
8376# Restart services
0 commit comments