diff --git a/scripts/change_url b/scripts/change_url index af6bc80..d6a18d1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -54,7 +54,7 @@ then path_url="$new_path" # Update custom error file path if needed - if [ $custom_error_file -eq 1 ] + if [ $custom_error_file ] 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"