From 36e0600016b5ec552523684d8ccd05cc3686c0d5 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 21 Jan 2021 22:04:04 +0100 Subject: [PATCH] Improve visitor permission removal --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0cae1b1..58647a0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,7 +50,8 @@ then fi # WireGuard UI should be private, really. -if [ $(ynh_permission_has_user --permission=main --user=visitors) -eq 1 ]; then +if ynh_permission_has_user --permission=main --user=visitors +then ynh_permission_update --permission=main --remove=visitors fi