Skip to content

Commit ef11c37

Browse files
committed
fixes nginx template switcher
1 parent f914148 commit ef11c37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/v-change-web-domain-proxy-tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ is_proxy_template_valid
4949
# Parsing domain values
5050
get_domain_values 'web'
5151
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
52+
old_tpl=$PROXY
5253
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
5354
ip=$(get_real_ip $IP)
5455

@@ -66,10 +67,11 @@ chmod 640 $conf
6667

6768
# Checking SSL
6869
if [ "$SSL" = 'yes' ]; then
69-
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.stpl"
70+
tpl_file="$WEBTPL/$PROXY_SYSTEM/$old_tpl.stpl"
7071
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
7172
del_web_config
7273

74+
tpl_file="$WEBTPL/$PROXY_SYSTEM/$template.stpl"
7375
add_web_config
7476
chown root:$user $conf
7577
chmod 640 $conf

0 commit comments

Comments
 (0)