From f6779f90cef4b1639407a31d04a36522fa74a1c1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 27 Dec 2019 14:07:51 -0500 Subject: [PATCH] remove groupdel --- src/class/Util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index d4413c6..c51c484 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -6,6 +6,7 @@ import { Message, PrivateChannel, GroupChannel, Member, User } from 'eris'; import uuid from 'uuid/v4'; import moment from 'moment'; import fs from 'fs'; +import os from 'os'; import { Client } from '..'; import { Command, RichEmbed } from '.'; import { ModerationInterface, AccountInterface } from '../models'; @@ -155,7 +156,7 @@ 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 ${account.homepath} && groupdel ${account.homepath.replace('/home/', '')}`), + this.exec(`deluser ${username} --remove-home --backup-to /management/Archives && rm -rf -R ${account.homepath}`), this.client.db.Account.deleteOne({ username }), ]; this.client.removeGuildMemberRole('446067825673633794', account.userID, '546457886440685578', 'Cloud Account Deleted').catch();