Skip to content

Commit f02594d

Browse files
committed
fix(postgres): pgdata permission error
1 parent 63a0e0e commit f02594d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rootfs/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ if [[ $UID -ge 10000 ]]; then
66
rm /tmp/passwd
77
fi
88

9+
chmod u+rwx "$PGDATA" || echo "Warning: Lack of permissions on data directory!"
10+
chmod go-rwx "$PGDATA" || echo "Warning: Lack of permissions on data directory!"
11+
912
cat > /data/patroni.yaml <<__EOF__
1013
bootstrap:
1114
dcs:

0 commit comments

Comments
 (0)