From c8ef3626aa4a5e42cb6a426ea62532249037a969 Mon Sep 17 00:00:00 2001 From: reidb1 <57458212+reidb1@users.noreply.github.com> Date: Thu, 8 May 2025 16:02:27 +0100 Subject: [PATCH] Fix incorrect shebang in example initialization script The `/bin/bash` shebang points does not point to the correct path for bash in the container. Because of this, the initialization scripts will not run. Changing to `/usr/bin/env bash` fixes this problem. Alternatively `/usr/bin/bash` would also work. --- postgres/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/content.md b/postgres/content.md index 966dea20d..6015c8508 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -132,7 +132,7 @@ If you would like to do additional initialization in an image derived from this For example, to add an additional user and database, add the following to `/docker-entrypoint-initdb.d/init-user-db.sh`: ```bash -#!/bin/bash +#!/usr/bin/env bash set -e psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL