From e76fb999c2ae92142cb5f1fbe71536681c3d6f5d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Jul 2019 12:33:59 +0200 Subject: [PATCH] Manage domains removal --- scripts/remove | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index 8880355..e238cec 100644 --- a/scripts/remove +++ b/scripts/remove @@ -132,10 +132,12 @@ ynh_systemd_action --service_name=metronome --action=restart yunohost user delete $focus_user --purge # Removing additional domains -#yunohost domain remove auth.$domain -#yunohost domain remove conference.$domain -#yunohost domain remove jitsi-videobridge.$domain -#yunohost domain remove focus.$domain +if [[ $domain == *"domain.tld"* ]]; then + yunohost domain remove auth.$domain + yunohost domain remove conference.$domain + yunohost domain remove jitsi-videobridge.$domain + yunohost domain remove focus.$domain +fi #================================================= # REMOVE THE CRON FILE