From 81710c46757889f8ea3c4cea4a0417a40d0bb9f6 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 01:54:18 +0300 Subject: [PATCH] don't allow nginx path change --- scripts/change_url | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 495b7eb..933fdc4 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -83,17 +83,17 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf -# Change the path in the NGINX config file -if [ $change_path -eq 1 ] -then - # Make a backup of the original NGINX config file if modified - ynh_backup_if_checksum_is_different --file="$nginx_conf_path" - # Set global variables for NGINX helper - domain="$old_domain" - path_url="$new_path" - # Create a dedicated NGINX config - ynh_add_nginx_config -fi +# # Change the path in the NGINX config file +# if [ $change_path -eq 1 ] +# then +# # Make a backup of the original NGINX config file if modified +# ynh_backup_if_checksum_is_different --file="$nginx_conf_path" +# # Set global variables for NGINX helper +# domain="$old_domain" +# path_url="$new_path" +# # Create a dedicated NGINX config +# ynh_add_nginx_config +# fi # Change the domain for NGINX if [ $change_domain -eq 1 ]