From 87274edcf146075544db6a9eb47213d715c89b61 Mon Sep 17 00:00:00 2001 From: Mayeul Cantan Date: Sun, 28 Apr 2024 21:57:33 +0200 Subject: [PATCH] Python->Go migration: also remove signald group --- scripts/upgrade-pre-0.5.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade-pre-0.5.sh b/scripts/upgrade-pre-0.5.sh index 311c942..22def92 100755 --- a/scripts/upgrade-pre-0.5.sh +++ b/scripts/upgrade-pre-0.5.sh @@ -34,8 +34,11 @@ ynh_secure_remove --file="$signald_exe" # Remove signald data ynh_secure_remove --file="$signald_data" -# Remove signald system user +# Remove signald system user and group ynh_system_user_delete --username=$signald_user +if ynh_system_group_exists --group="$signald_user"; then + groupdel "$signald_user" +fi #=================================================