From 44f371dae613c57d0fcae28cf9cd800675debb0f Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Mon, 21 Aug 2023 15:20:52 +0200 Subject: [PATCH] WIP: Update the custom config file --- scripts/change_url | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 9018ece..af6bc80 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -44,6 +44,7 @@ nginx_extra_conf_dir=/etc/nginx/conf.d/$old_domain.d/$app.d # Change the path in the NGINX config file if [ $change_path -eq 1 ] +ynh_print_info --message="Change the path in the Nginx config file" then # Make a backup of the original NGINX config file if modified ynh_backup_if_checksum_is_different --file="$nginx_conf_path" @@ -53,10 +54,11 @@ then path_url="$new_path" # Update custom error file path if needed - #if [ $custom_error_file -eq 1 ] - #then - # ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf" - #fi + if [ $custom_error_file -eq 1 ] + ynh_print_info --message="Change the custom error config file" + then + ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf" + fi # Create a dedicated NGINX configssh ynh_add_nginx_config