modules/nixos/glauth: Weh.

This commit is contained in:
kat witch 2021-09-04 23:47:49 +01:00
parent 99ad43438a
commit a1d46f5301
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -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
[