File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,17 @@ is_object_value_exist 'web' 'DOMAIN' "$domain" '$PROXY'
4343get_domain_values ' web'
4444tpl_file=" $WEBTPL /$PROXY_SYSTEM /$PROXY .tpl"
4545conf=" $HOMEDIR /$user /conf/web/$PROXY_SYSTEM .conf"
46- del_web_config
46+ if [ ! -z " $PROXY_SYSTEM " ]; then
47+ del_web_config
48+ fi
4749
4850# Checking SSL
4951if [ " $SSL " = ' yes' ]; then
5052 tpl_file=" $WEBTPL /$PROXY_SYSTEM /$PROXY .stpl"
5153 conf=" $HOMEDIR /$user /conf/web/s$PROXY_SYSTEM .conf"
52- del_web_config
54+ if [ ! -z " $PROXY_SYSTEM " ]; then
55+ del_web_config
56+ fi
5357fi
5458
5559
6165update_object_value ' web' ' DOMAIN' " $domain " ' $PROXY' ' '
6266update_object_value ' web' ' DOMAIN' " $domain " ' $PROXY_EXT' ' '
6367
68+ if [ -z " $PROXY_SYSTEM " ]; then
69+ exit
70+ fi
6471
6572# Checking last SSL proxy
6673conf=" /etc/$PROXY_SYSTEM /conf.d/vesta.conf"
You can’t perform that action at this time.
0 commit comments