mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
switch to "do" from "loud" in remote init
(now that i know it works)
This commit is contained in:
parent
76bd1ad784
commit
8184c18bd7
1 changed files with 8 additions and 7 deletions
|
|
@ -3,14 +3,15 @@ import { Command, makeSshAction, privkeyToPubkey } from '../utils/mod.ts';
|
||||||
export const init = new Command('init', 'Initialise a brand-new Ditto remote')
|
export const init = new Command('init', 'Initialise a brand-new Ditto remote')
|
||||||
.option('-e --email', {
|
.option('-e --email', {
|
||||||
description: "The e-mail address to use for requesting Let's Encrypt certificates.",
|
description: "The e-mail address to use for requesting Let's Encrypt certificates.",
|
||||||
|
required: true,
|
||||||
})
|
})
|
||||||
.setAction(makeSshAction(async ({ arg, tribes, domain }) => {
|
.setAction(makeSshAction(async ({ arg, tribes, domain }) => {
|
||||||
const pubkey = await privkeyToPubkey(arg('identity-file'));
|
const pubkey = await privkeyToPubkey(arg('identity-file'));
|
||||||
await tribes.loud('DOKKU_SET_ADMIN_PUBKEY', pubkey);
|
await tribes.do('DOKKU_SET_ADMIN_PUBKEY', pubkey);
|
||||||
await tribes.loud('DOKKU_INSTALL_PLUGIN', 'postgres');
|
await tribes.do('DOKKU_INSTALL_PLUGIN', 'postgres');
|
||||||
await tribes.loud('DOKKU_INSTALL_PLUGIN', 'letsencrypt');
|
await tribes.do('DOKKU_INSTALL_PLUGIN', 'letsencrypt');
|
||||||
await tribes.loud('DOKKU_CREATE_POSTGRES_SERVICE', 'dittodb');
|
await tribes.do('DOKKU_CREATE_POSTGRES_SERVICE', 'dittodb');
|
||||||
await tribes.loud('DOKKU_SET_GLOBAL_DOMAIN', domain);
|
await tribes.do('DOKKU_SET_GLOBAL_DOMAIN', domain);
|
||||||
await tribes.loud('DOKKU_LETSENCRYPT_SETUP_EMAIL', arg('email'));
|
await tribes.do('DOKKU_LETSENCRYPT_SETUP_EMAIL', arg('email'));
|
||||||
await tribes.loud('DOKKU_LETSENCRYPT_CRON');
|
await tribes.do('DOKKU_LETSENCRYPT_CRON');
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue