From 0b7c006672c6eb0ea6174c884fcba5b824a7de31 Mon Sep 17 00:00:00 2001 From: Limezy Date: Mon, 15 Nov 2021 09:23:37 +0700 Subject: [PATCH] Update change_url --- scripts/change_url | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index bdbb55d..3b0077b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -72,7 +72,7 @@ fi change_path=0 if [ "$old_path" != "$new_path" ] then - change_path=1 + ynh_die "Outline has to be installed on the root of a domain" fi #================================================= @@ -91,18 +91,6 @@ 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 domain for NGINX if [ $change_domain -eq 1 ] then