mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Update v-activate-rocket-nginx
This commit is contained in:
parent
a997f6f59c
commit
38ec1b872f
1 changed files with 16 additions and 6 deletions
|
@ -73,14 +73,24 @@ fi
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Changing Proxy Template
|
# Changing Proxy Template
|
||||||
echo "Do you want to force-https in your Proxy Template or not (y/n):"
|
# Check if the proxy template is already set correctly
|
||||||
read answer
|
current_template=$(/usr/local/vesta/bin/v-list-web-domain $user $domain | grep 'PROXY:' | awk '{print $2}')
|
||||||
if [ "$answer" == "y" ]; then
|
if [ "$current_template" == "wprocket-force-https" ] || [ "$current_template" == "wprocket-hosting" ]; then
|
||||||
/usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-force-https"
|
echo "Proxy Template is already set up correctly"
|
||||||
else
|
else
|
||||||
|
# Prompt the user to choose whether to force HTTPS or not
|
||||||
|
echo "Do you want to force-https in your Proxy Template or not (y/n):"
|
||||||
|
read answer
|
||||||
|
|
||||||
|
# Change the proxy template based on the user's choice
|
||||||
|
if [ "$answer" == "y" ]; then
|
||||||
|
/usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-force-https"
|
||||||
|
else
|
||||||
/usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-hosting"
|
/usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-hosting"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Proxy Template is ready"
|
||||||
fi
|
fi
|
||||||
echo "Proxy Template is ready"
|
|
||||||
|
|
||||||
# Disabling wp-cron in wp-config.php
|
# Disabling wp-cron in wp-config.php
|
||||||
cd /home/$user/web/$domain/public_html
|
cd /home/$user/web/$domain/public_html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue