From 8c3b1e2161e62a7fb7362acc5430796bee87fc90 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 17 Aug 2023 18:04:47 +0200 Subject: [PATCH] Update config with the conditional state in the custom error file section --- scripts/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index d2b5e8c..5fda374 100644 --- a/scripts/config +++ b/scripts/config @@ -153,7 +153,7 @@ ynh_app_config_apply() { CUSTOM_ERROR_FILE=$custom_error_file nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d" - if [ "$custom_error_file" ] + if [ $custom_error_file ] then ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf" else