File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ rebuild_web_domain_conf() {
254254
255255 # Checking SSL
256256 if [ " $SSL " = ' yes' ]; then
257+
257258 # Adding domain to the web conf
258259 conf=" $HOMEDIR /$user /conf/web/tmp_s$WEB_SYSTEM .conf"
259260 tpl_file=" $WEBTPL /$WEB_SYSTEM /$TPL .stpl"
@@ -288,16 +289,21 @@ rebuild_web_domain_conf() {
288289 add_web_config
289290 chown root:$user $conf
290291 chmod 640 $conf
292+ proxy_change=' yes'
293+ fi
291294
292- if [ " $SSL " = ' yes' ]; then
293- tpl_file=" $WEBTPL /$PROXY_SYSTEM /$PROXY .stpl"
294- conf=" $HOMEDIR /$user /conf/web/tmp_s$PROXY_SYSTEM .conf"
295- add_web_config
296- chown root:$user $conf
297- chmod 640 $conf
295+ if [ ! -z " $PROXY_SYSTEM " ] && [ " $SSL " = ' yes' ]; then
296+ tpl_file=" $WEBTPL /$PROXY_SYSTEM /$PROXY .stpl"
297+ if [ -z " $PROXY " ]; then
298+ tpl_file=" $WEBTPL /$PROXY_SYSTEM /default.stpl"
298299 fi
300+ conf=" $HOMEDIR /$user /conf/web/tmp_s$PROXY_SYSTEM .conf"
301+ add_web_config
302+ chown root:$user $conf
303+ chmod 640 $conf
299304 proxy_change=' yes'
300305 fi
306+
301307 if [ " $SUSPENDED " = ' yes' ]; then
302308 suspended_web=$(( suspended_web + 1 ))
303309 fi
You can’t perform that action at this time.
0 commit comments