Skip to content

Commit 83afc26

Browse files
committed
copy postgresql.conf into if found in /docker-entrypoint-initdb.d/
1 parent 5d0b6ad commit 83afc26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ if [ "$1" = 'postgres' ]; then
155155
;;
156156
*.sql) echo "$0: running $f"; "${psql[@]}" -f "$f"; echo ;;
157157
*.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${psql[@]}"; echo ;;
158+
postgresql.conf)
159+
echo "copying $f to $PGDATA"
160+
cp "/docker-entrypoint-initdb.d/$f" "$PGDATA/$f"
161+
echo
162+
;;
158163
*) echo "$0: ignoring $f" ;;
159164
esac
160165
echo

0 commit comments

Comments
 (0)