From d3ef4d2030db2b75bceb1d120e775df64a7fad25 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Mar 2026 11:47:58 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20use=20/bin/sh=20in=20postgres=20init=20s?= =?UTF-8?q?cript=20=E2=80=94=20Alpine=20has=20no=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH --- infra/postgres-init/01-forgejo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/postgres-init/01-forgejo.sh b/infra/postgres-init/01-forgejo.sh index b401aa6..7c7d7c3 100755 --- a/infra/postgres-init/01-forgejo.sh +++ b/infra/postgres-init/01-forgejo.sh @@ -1,8 +1,8 @@ -#!/usr/bin/env bash +#!/bin/sh # Create a dedicated database and user for Forgejo. # Runs once when the Postgres container is first initialised. # FORGEJO_DB_PASSWORD must be set in the environment (via docker-compose.yml). -set -euo pipefail +set -e psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL CREATE USER forgejo WITH PASSWORD '${FORGEJO_DB_PASSWORD}';