From 8d4188382b96a2a07307e443b47894822258c82a Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 17 Aug 2023 18:08:11 +0200 Subject: [PATCH] Add debug info with the config file --- scripts/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/config b/scripts/config index 5fda374..a4ef631 100644 --- a/scripts/config +++ b/scripts/config @@ -152,11 +152,14 @@ ynh_app_config_apply() { then CUSTOM_ERROR_FILE=$custom_error_file nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d" + ynh_print_info --message="Update the custom setting $custom_error_file" if [ $custom_error_file ] then + ynh_print_info --message="Add the config file" ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf" else + ynh_print_info --message="Remove the config file" ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf" fi fi