We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f914148 commit ef11c37Copy full SHA for ef11c37
bin/v-change-web-domain-proxy-tpl
@@ -49,6 +49,7 @@ is_proxy_template_valid
49
# Parsing domain values
50
get_domain_values 'web'
51
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
52
+old_tpl=$PROXY
53
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
54
ip=$(get_real_ip $IP)
55
@@ -66,10 +67,11 @@ chmod 640 $conf
66
67
68
# Checking SSL
69
if [ "$SSL" = 'yes' ]; then
- tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.stpl"
70
+ tpl_file="$WEBTPL/$PROXY_SYSTEM/$old_tpl.stpl"
71
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
72
del_web_config
73
74
+ tpl_file="$WEBTPL/$PROXY_SYSTEM/$template.stpl"
75
add_web_config
76
chown root:$user $conf
77
chmod 640 $conf
0 commit comments