From 760e1a32333460605cdd70f5241e12316f6941cf Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 27 Jul 2023 10:25:32 +0800 Subject: [PATCH] hosts/plover: fix Keycloak pre-start script --- hosts/plover/modules/services/keycloak.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/plover/modules/services/keycloak.nix b/hosts/plover/modules/services/keycloak.nix index fa4f864d..2eb6c07e 100644 --- a/hosts/plover/modules/services/keycloak.nix +++ b/hosts/plover/modules/services/keycloak.nix @@ -76,7 +76,7 @@ in lib.mkAfter '' # Setting up the appropriate schema for PostgreSQL secure schema usage. ${psqlBin} -tAc "SELECT 1 FROM information_schema.schemata WHERE schema_name='${keycloakUser}';" \ - | grep -q 1 || psql -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${keycloakUser};" + | grep -q 1 || ${psqlBin} -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${keycloakUser};" ''; };