forked from engineering/cloudservices
Fixes
parent
802d18541f
commit
f946b1c8bf
|
@ -15,11 +15,11 @@ export default class SecureSign_Build extends Command {
|
|||
try {
|
||||
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 info = build.replace(/\n/g, '\n**').replace(/:/g, ':**').split('\n');
|
||||
const build = await this.client.util.exec("sudo -H -u root bash -c 'securesign-canary build'");
|
||||
const info = build.replace(/^\s+|\s+$/g, '').replace(/\n/g, '\n**').replace(/: /g, ':** ').split('\n');
|
||||
const title = info.shift();
|
||||
const description = info.join('\n');
|
||||
const content = null;
|
||||
const content = '';
|
||||
|
||||
const embed = new RichEmbed();
|
||||
embed.setTitle(title);
|
||||
|
|
|
@ -45,7 +45,7 @@ export default class SecureSign_Init extends Command {
|
|||
await Promise.all(tasks);
|
||||
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');
|
||||
return msg.edit(`${this.client.stores.emojis.success} ***Account initialized***`);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue