From 00c6c6b61125d2c8c1bc6fb9d36e79848d859169 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Wed, 15 Feb 2023 21:57:05 +0000 Subject: [PATCH] Update upgrade --- scripts/upgrade | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index fa3f51c..39afa10 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -122,8 +122,11 @@ ynh_script_progression --message="Setting up sandobx domain: $sandboxdomain" --w # We don't test that in CI if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then - yunohost domain add $sandboxdomain - yunohost domain config set $sandboxdomain -a "mail_in=0&mail_out=0" + # If sandboxdomain doesn't exist, create it + if [ -z "$sandboxdomain" ]; then + yunohost domain add $sandboxdomain + yunohost domain config set $sandboxdomain -a "mail_in=0&mail_out=0" + fi fi #=================================================