We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ba93a commit 604d36eCopy full SHA for 604d36e
scripts/run.sh
@@ -11,6 +11,15 @@ trap \
11
rm -f "$PGDATA"/postmaster.pid
12
echo "waiting for the role to be decided ..."
13
while true; do
14
+ if [[ -d $PGDATA ]];then
15
+ DIR="$PGDATA"
16
+ CURRENT_PERMS=$(stat -c "%a" "$DIR")
17
+ if [ "$CURRENT_PERMS" -gt 700 ]; then
18
+ echo "Permissions are greater than 0700. Updating to 0700."
19
+ chmod 0700 "$DIR"
20
+ fi
21
22
+
23
if [[ -e /run_scripts/role/run.sh ]] && [[ "$STOP" = false ]]; then
24
echo "running the initial script ..."
25
if [[ $REMOTE_REPLICA == "true" ]]; then
0 commit comments