hosts/plover: fix Keycloak pre-start script

This commit is contained in:
Gabriel Arazas 2023-07-27 10:25:32 +08:00
parent 9c2e3ee1bf
commit 760e1a3233
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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};"
'';
};