mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/stash: fix mutableSettings logic (#408198)
This commit is contained in:
commit
8be90eac26
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ in
|
||||||
ExecStartPre = pkgs.writers.writeBash "stash-setup.bash" (
|
ExecStartPre = pkgs.writers.writeBash "stash-setup.bash" (
|
||||||
''
|
''
|
||||||
install -d ${cfg.settings.generated}
|
install -d ${cfg.settings.generated}
|
||||||
if [[ ! -z "${toString cfg.mutableSettings}" || ! -f ${cfg.dataDir}/config.yml ]]; then
|
if [[ -z "${toString cfg.mutableSettings}" || ! -f ${cfg.dataDir}/config.yml ]]; then
|
||||||
env \
|
env \
|
||||||
password=$(< ${cfg.passwordFile}) \
|
password=$(< ${cfg.passwordFile}) \
|
||||||
jwtSecretKeyFile=$(< ${cfg.jwtSecretKeyFile}) \
|
jwtSecretKeyFile=$(< ${cfg.jwtSecretKeyFile}) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue