Skip to content

Commit

Permalink
fix: tmp file chown
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Nov 1, 2023
1 parent e098be3 commit 1d8b825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [ "$DISABLE_PGSQL" != "YES" ] && [ ! -f /run/postgresql/.init ]; then
SQL=$(mktemp)

mkdir -p /run/postgresql /usr/local/pgsql/data
chown postgres:postgres -R /run/postgresql /usr/local/pgsql/data $SQL
chown postgres:postgres -R /run/postgresql /usr/local/pgsql/data
su postgres -c "initdb -D /usr/local/pgsql/data"

PGSQL_DATABASE=${PGSQL_DATABASE:-test}
Expand Down

0 comments on commit 1d8b825

Please sign in to comment.