mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fixes nginx template switcher
This commit is contained in:
parent
f9141487c8
commit
ef11c375b9
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,7 @@ is_proxy_template_valid
|
||||||
# Parsing domain values
|
# Parsing domain values
|
||||||
get_domain_values 'web'
|
get_domain_values 'web'
|
||||||
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
|
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
|
||||||
|
old_tpl=$PROXY
|
||||||
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
|
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
|
||||||
ip=$(get_real_ip $IP)
|
ip=$(get_real_ip $IP)
|
||||||
|
|
||||||
|
@ -66,10 +67,11 @@ chmod 640 $conf
|
||||||
|
|
||||||
# Checking SSL
|
# Checking SSL
|
||||||
if [ "$SSL" = 'yes' ]; then
|
if [ "$SSL" = 'yes' ]; then
|
||||||
tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.stpl"
|
tpl_file="$WEBTPL/$PROXY_SYSTEM/$old_tpl.stpl"
|
||||||
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
|
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
|
||||||
del_web_config
|
del_web_config
|
||||||
|
|
||||||
|
tpl_file="$WEBTPL/$PROXY_SYSTEM/$template.stpl"
|
||||||
add_web_config
|
add_web_config
|
||||||
chown root:$user $conf
|
chown root:$user $conf
|
||||||
chmod 640 $conf
|
chmod 640 $conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue