merge-requests/1/merge
Bsian 2019-11-16 22:39:34 +00:00
parent 802d18541f
commit f946b1c8bf
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 4 additions and 4 deletions

View File

@ -15,11 +15,11 @@ export default class SecureSign_Build extends Command {
try { try {
const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Loading build information...***`); const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Loading build information...***`);
const build = await this.client.util.exec("sudo -H -u root bash -c 'securesign build'"); const build = await this.client.util.exec("sudo -H -u root bash -c 'securesign-canary build'");
const info = build.replace(/\n/g, '\n**').replace(/:/g, ':**').split('\n'); const info = build.replace(/^\s+|\s+$/g, '').replace(/\n/g, '\n**').replace(/: /g, ':** ').split('\n');
const title = info.shift(); const title = info.shift();
const description = info.join('\n'); const description = info.join('\n');
const content = null; const content = '';
const embed = new RichEmbed(); const embed = new RichEmbed();
embed.setTitle(title); embed.setTitle(title);

View File

@ -45,7 +45,7 @@ export default class SecureSign_Init extends Command {
await Promise.all(tasks); await Promise.all(tasks);
return msg.edit(`${this.client.stores.emojis.error} ***Credentials incorrect***`); return msg.edit(`${this.client.stores.emojis.error} ***Credentials incorrect***`);
} }
const init = await this.client.util.exec(`sudo -H -u ${account.username} bash -c 'securesign init -a ${args[0]}'`); const init = await this.client.util.exec(`sudo -H -u ${account.username} bash -c 'securesign-canary init -a ${args[0]}'`);
if (!init.endsWith('Initialization sequence completed.')) throw new Error('Account initialization did not complete successfully'); if (!init.endsWith('Initialization sequence completed.')) throw new Error('Account initialization did not complete successfully');
return msg.edit(`${this.client.stores.emojis.success} ***Account initialized***`); return msg.edit(`${this.client.stores.emojis.success} ***Account initialized***`);
} catch (error) { } catch (error) {