This commit is contained in:
2026-11-11 13:53:51 +03:00
parent 20afc2c790
commit 4afb2ac7b9
138 changed files with 12659 additions and 56 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
for role in api worker dispatcher reconciler; do
LAB_ROLE_PASSWORD="$(cat "/credentials/$role")" \
psql -q -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" \
-v role="lab_$role" <<'SQL'
\getenv pw LAB_ROLE_PASSWORD
CREATE ROLE :"role" LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE NOREPLICATION PASSWORD :'pw';
SQL
done