diff --git a/scripts/remove b/scripts/remove index e1b066f..0e53723 100644 --- a/scripts/remove +++ b/scripts/remove @@ -69,12 +69,19 @@ ynh_remove_nodejs #================================================= ynh_script_progression --message="Removing sandbox domain..." --weight=1 -sandboxdomain=sandbox-$domain -if sudo yunohost domain list | grep -q $sandboxdomain -then #if domain exist we remove it - yunohost domain remove $sandboxdomain +# 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 + fi fi + #================================================= # RELOAD YUNOHOST-API to refresh web admin domains after domain creation (bug core?) #=================================================