From 22553fbb7e64ba0abc1488116583f0b5df4d7234 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Thu, 27 Oct 2022 20:07:00 +0000 Subject: [PATCH] Update remove --- scripts/remove | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 0e53723..39e73ba 100644 --- a/scripts/remove +++ b/scripts/remove @@ -72,9 +72,7 @@ ynh_script_progression --message="Removing sandbox domain..." --weight=1 # We don't test that in CI if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then sandboxdomain=sandbox-$domain - - ynh_permission_url --permission="main" --remove_url=${sandboxdomain%/} --auth_header=false - + if sudo yunohost domain list | grep -q $sandboxdomain then #if domain exist we remove it yunohost domain remove $sandboxdomain