fix: check the correct variable for the license file secret

This commit is contained in:
Price Hiller 2023-12-18 11:03:23 -06:00
parent fa51273b80
commit 0b9674a93a
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

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