From ed56fc98220c4815dae502553f54d252abc72a7a Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 27 Feb 2023 22:57:41 -0800 Subject: [PATCH] [keycloak] fix after bump to 20.0.3 --- keycloak/unit.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/keycloak/unit.nix b/keycloak/unit.nix index 95871a6..cebd0e5 100644 --- a/keycloak/unit.nix +++ b/keycloak/unit.nix @@ -108,12 +108,9 @@ in Environment=PATH=${pkgs.coreutils}/bin Environment=KC_HOME_DIR="/run/keycloak" - # running the ExecStartPre as root is not ideal, but at the moment - # the only solution for Quarkus modifying the serialized - # data under /lib/quarkus - # Raised upstream as https://github.com/keycloak/keycloak/discussions/10323 - # ExecStartPre=!${keycloak}/bin/kc.sh -cf ${configFile} build - ExecStart=${keycloak}/bin/kc.sh -cf ${configFile} start + # build is ran upstream in the pkgs.keycloak definition, we add + # the --optimized flag to avoid running build on startup + ExecStart=${keycloak}/bin/kc.sh -cf ${configFile} start --optimized # ReadWritePaths=/var/lib/keycloak # ReadWritePaths=/var/log/keycloak