From e5f37f9e0fcf16e42c901c35768e5762e541eb21 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Thu, 27 Oct 2022 10:22:41 +0000 Subject: [PATCH] Update remove --- scripts/remove | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 1126a49..3797f12 100644 --- a/scripts/remove +++ b/scripts/remove @@ -68,7 +68,10 @@ ynh_remove_nodejs # REMOVE SANDBOX DOMAIN #================================================= sandboxdomain=sandbox-$domain -yunohost domain remove $sandboxdomain +if sudo yunohost domain list | grep -q $sandboxdomain +then #if domain exist we remove it + yunohost domain remove $sandboxdomain +fi #================================================= # RELOAD YUNOHOST-API to refresh web admin domains after domain creation (bug core?)