mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
modules/nixos/glauth: Weh.
This commit is contained in:
parent
99ad43438a
commit
a1d46f5301
1 changed files with 2 additions and 1 deletions
|
|
@ -153,11 +153,12 @@ in
|
|||
set -o errexit -o pipefail -o nounset -o errtrace
|
||||
shopt -s inherit_errexit
|
||||
umask u=rwx,g=,o=
|
||||
mkdir -p /run/glauth/secrets
|
||||
install -T -m 0400 -o glauth -g glauth '${dbcfg.passwordFile}' /run/glauth/secrets/db_password
|
||||
'';
|
||||
startPre = ''
|
||||
install -T -m 0600 ${cfg.configFile} /run/glauth/config.cfg
|
||||
replace-secret '@db-password@' /run/glauth/config.cfg
|
||||
replace-secret '@db-password@' '/run/glauth/secrets/db_password' /run/glauth/config.cfg
|
||||
'';
|
||||
in
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue