mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/stash: fix mutableSettings logic
Fixes services.stash.mutableSettings so that it makes sense. The logic was previously backwards and the settings would be overriden if mutableSettings was true.
This commit is contained in:
parent
ac60d61e37
commit
7dcad49a30
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ in
|
|||
ExecStartPre = pkgs.writers.writeBash "stash-setup.bash" (
|
||||
''
|
||||
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 \
|
||||
password=$(< ${cfg.passwordFile}) \
|
||||
jwtSecretKeyFile=$(< ${cfg.jwtSecretKeyFile}) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue