From 33968949856a61ed8a99eb843e5a53904aed50e9 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Wed, 16 Aug 2023 19:29:01 +0200 Subject: [PATCH] Update config file --- scripts/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index 1cbd2a5..baf65b7 100644 --- a/scripts/config +++ b/scripts/config @@ -150,7 +150,7 @@ ynh_app_config_apply() { if [ "${changed[$custom_error_file]}" == "true" ] then - echo Update error nginx config + CUSTOM_ERROR_FILE=$custom_error_file ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf" fi @@ -158,6 +158,11 @@ ynh_app_config_apply() { then ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint fi + + if [ ! $custom_error_file ] + then + ynh_app_setting_set --app=$app --key=custom_error_file --value="$custom_error_file" + fi } ynh_app_config_run $1