mastodon: add create-mastodon-user helper
This commit is contained in:
parent
2d5f0db519
commit
8a6f835acb
@ -36,5 +36,11 @@
|
||||
(pkgs.writers.writeDashBin "tootctl" ''
|
||||
sudo -u mastodon /etc/profiles/per-user/mastodon/bin/mastodon-env /etc/profiles/per-user/mastodon/bin/tootctl "$@"
|
||||
'')
|
||||
(pkgs.writers.writeDashBin "create-mastodon-user" ''
|
||||
set -efu
|
||||
nick=$1
|
||||
/run/current-system/sw/bin/tootctl accounts create "$nick" --email "$nick"@krebsco.de --confirmed
|
||||
/run/current-system/sw/bin/tootctl accounts approve "$nick"
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user