File tree Expand file tree Collapse file tree 11 files changed +22
-22
lines changed
Expand file tree Collapse file tree 11 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
Original file line number Diff line number Diff line change 4242
4343if [ " $1 " = ' postgres' ]; then
4444 mkdir -p " $PGDATA "
45+ chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
46+ chmod 700 " $PGDATA " 2> /dev/null || :
4547
4648 # look specifically for PG_VERSION, as it is expected in the DB dir
4749 if [ ! -s " $PGDATA /PG_VERSION" ]; then
48- chown -R " $( id -u) " " $PGDATA " 2> /dev/null || :
49-
5050 file_env ' POSTGRES_INITDB_ARGS'
5151 eval " initdb --username=postgres $POSTGRES_INITDB_ARGS "
5252
You can’t perform that action at this time.
0 commit comments