Update v-activate-rocket-nginx

This commit is contained in:
isscbta 2023-02-16 21:04:20 +01:00
commit 38ec1b872f

View file

@ -73,14 +73,24 @@ fi
#----------------------------------------------------------# #----------------------------------------------------------#
# Changing Proxy Template # Changing Proxy Template
# Check if the proxy template is already set correctly
current_template=$(/usr/local/vesta/bin/v-list-web-domain $user $domain | grep 'PROXY:' | awk '{print $2}')
if [ "$current_template" == "wprocket-force-https" ] || [ "$current_template" == "wprocket-hosting" ]; then
echo "Proxy Template is already set up correctly"
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):" echo "Do you want to force-https in your Proxy Template or not (y/n):"
read answer read answer
# Change the proxy template based on the user's choice
if [ "$answer" == "y" ]; then if [ "$answer" == "y" ]; then
/usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-force-https" /usr/local/vesta/bin/v-change-web-domain-proxy-tpl "$user" "$domain" "wprocket-force-https"
else 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 fi
echo "Proxy Template is ready" echo "Proxy Template is ready"
fi
# 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