From 1532a3721decabe9ea7dc4d154352a36dd346b80 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Fri, 3 Mar 2023 13:19:22 +0000 Subject: [PATCH] Update scripts/upgrade Co-authored-by: Kayou --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a7424c8..79cb1ab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -192,7 +192,9 @@ ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --lin #================================================= # We don't test that in CI if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then - ynh_add_config --template="nginx.conf" --destination="/etc/nginx/conf.d/$sandboxdomain.d/$app.conf" + if [ -n "$sandboxdomain" ]; then + ynh_add_config --template="nginx.conf" --destination="/etc/nginx/conf.d/$sandboxdomain.d/$app.conf" + fi fi # We authorize access to sandbox domain