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