From 07e3e7ffdbc0e86495b63963cb98d1308e818f20 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 1 Jul 2020 00:54:29 -0400 Subject: [PATCH] fixes --- src/commands/systemd_status.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/systemd_status.ts b/src/commands/systemd_status.ts index 998457f..e789b9f 100644 --- a/src/commands/systemd_status.ts +++ b/src/commands/systemd_status.ts @@ -15,8 +15,7 @@ export default class SystemD_Status extends Command { if (!args[0]) return this.client.commands.get('help').run(message, ['systemd', this.name]); const account = await this.client.db.Account.findOne({ userID: message.author.id }).lean().exec(); if (!account) return this.error(message.channel, 'You do not have a Cloud Services account.'); - const cmd = await this.client.util.exec(`runuser ${account.username} -c 'DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/\${UID}/bus" systemctl --user s - tatus ${args[0]}'`); + const cmd = await this.client.util.exec(`runuser ${account.username} -c 'DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/\${UID}/bus" systemctl --user status ${args[0]}'`); if (cmd.includes('could not be found')) return this.error(message.channel, 'The service name you provided doesn\'t exist.'); const embed = new RichEmbed(); embed.setTitle(`SystemD Status | ${args[0]}`);