From 0b9674a93a30048841e5e6db388d0cc5906c8845 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 18 Dec 2023 11:03:23 -0600 Subject: [PATCH] fix: check the correct variable for the license file secret --- modules/squad-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/squad-server.nix b/modules/squad-server.nix index f8fb4c5..103cc6a 100644 --- a/modules/squad-server.nix +++ b/modules/squad-server.nix @@ -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