From 68db50544cc0c95470660de29e4be5aefb4576f9 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Fri, 31 Jul 2026 21:49:45 +0200 Subject: [PATCH] =?UTF-8?q?gate2:=20fix=20shell=20quote=20conflict=20in=20?= =?UTF-8?q?prestart.sh=20=E2=80=94=20use=20string=20concat=20instead=20of?= =?UTF-8?q?=20f-string=20for=20ALTER=20ROLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prestart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prestart.sh b/prestart.sh index 1f0f672..e070375 100644 --- a/prestart.sh +++ b/prestart.sh @@ -57,7 +57,7 @@ async def set_passwords(): try: # ALTER ROLE doesn't support prepared statement parameters # so we inline the password (extracted from DB URL, safe) - await conn.execute(text(f"ALTER ROLE {role} WITH LOGIN PASSWORD '{pwd}'")) + await conn.execute(text("ALTER ROLE " + role + " WITH LOGIN PASSWORD '" + pwd + "'")) print(f'[prestart] Password set for {role}') except Exception as e: print(f'[prestart] WARNING: Could not set password for {role}: {e}')