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}')