From 82b3148fd3c4898ce07bb1a15eed987b56bed3d4 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 23 Dec 2019 16:55:10 +0000 Subject: [PATCH] Move group delete to after folder delete --- src/class/Util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 76ca6a0..8f85dd6 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -155,9 +155,8 @@ export default class Util { if (!account) throw new Error('Account not found'); this.exec(`lock ${username}`); const tasks = [ - this.exec(`deluser ${username} --remove-home --backup-to /management/Archives && rm -rf -R /home/${username}`), + this.exec(`deluser ${username} --remove-home --backup-to /management/Archives && rm -rf -R /home/${username} && groupdel ${username}`), this.client.db.Account.deleteOne({ username }), - this.exec(`groupdel ${username}`), ]; this.client.removeGuildMemberRole('446067825673633794', account.userID, '546457886440685578', 'Cloud Account Deleted').catch(); // @ts-ignore