mirror of
https://github.com/AsgardEternal/Squad.nix.git
synced 2024-12-30 16:29:17 -06:00
fix: check the correct variable for the license file secret
This commit is contained in:
parent
fa51273b80
commit
0b9674a93a
@ -950,7 +950,7 @@ in
|
||||
sed -i -e 's/^Password=.*$/Password='"$(${pkgs.systemd}/bin/systemd-creds cat SQUAD_RCON_PASSWORD_FILE)"'/g' ./Rcon.cfg
|
||||
''}
|
||||
|
||||
${lib.optionalString (cfg.config.server.passwordFile != null) ''
|
||||
${lib.optionalString (cfg.config.license.file != null) ''
|
||||
## Handle secrets for the `License.cfg` file ##
|
||||
# Safely load the license outside of the nix store
|
||||
printf "%s" "$(${pkgs.systemd}/bin/systemd-creds cat SQUAD_LICENSE_FILE)" > ./License.cfg
|
||||
|
Loading…
Reference in New Issue
Block a user