s/pwd/password/ for clarity
This commit is contained in:
parent
49a9a24c75
commit
35d46ca712
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ in
|
||||||
systemd.services.forgejo.preStart =
|
systemd.services.forgejo.preStart =
|
||||||
let
|
let
|
||||||
adminCmd = "${lib.getExe config.services.forgejo.package} admin user";
|
adminCmd = "${lib.getExe config.services.forgejo.package} admin user";
|
||||||
pwd = config.age.secrets.forgejoAdminPass.path;
|
password = config.age.secrets.forgejoAdminPass.path;
|
||||||
user = "tdback";
|
user = "tdback";
|
||||||
email = "tyler@tdback.net";
|
email = "tyler@tdback.net";
|
||||||
in ''
|
in ''
|
||||||
${adminCmd} create --admin --email ${email} --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
|
${adminCmd} create --admin --email ${email} --username ${user} --password "$(tr -d '\n' < ${password})" || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.openssh.settings.AllowUsers = [ "forgejo" ];
|
services.openssh.settings.AllowUsers = [ "forgejo" ];
|
||||||
|
|
Loading…
Reference in a new issue