瀏覽代碼

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.
reidb1 7 月之前
父節點
當前提交
c8ef3626aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      postgres/content.md

+ 1 - 1
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`:
 For example, to add an additional user and database, add the following to `/docker-entrypoint-initdb.d/init-user-db.sh`:
 
 
 ```bash
 ```bash
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 set -e
 
 
 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL