diff --git a/4.4/init.sh b/4.4/init.sh index b4a351f..4cacfae 100755 --- a/4.4/init.sh +++ b/4.4/init.sh @@ -65,7 +65,7 @@ fi # if we use a bind mount then the PG directory is empty and we have to create it if [ ! -f /var/lib/postgresql/14/main/PG_VERSION ]; then - chown postgres /var/lib/postgresql/14/main + chown postgres:postgres /var/lib/postgresql/14/main sudo -u postgres /usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main fi