File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ if [[ "$PITR_RESTORE" == "true" ]]; then
19
19
done
20
20
fi
21
21
22
- if [[ -d $PGDATA && " $PITR_RS " == " fscopy" ]]; then
23
- chmod 0700 $PGDATA
24
- fi
25
22
# going to change this with the check of process id
26
23
rm -f " $PGDATA " /postmaster.pid
27
24
echo " waiting for the role to be decided ..."
@@ -35,6 +32,12 @@ while true; do
35
32
fi
36
33
fi
37
34
35
+ if [[ " $ARCHIVER_ENABLED " == " true" && ! -d " $ARCHIVE_STATUS_PATH " && " $ARCHIVE_STATUS_PATH " != " " ]]; then
36
+ mkdir -m 0750 -p " $ARCHIVE_PATH "
37
+ mkdir -m 0750 -p " $ARCHIVE_STATUS_PATH "
38
+ mkdir -m 0750 -p " $LAST_ARCHIVED_FILE_INFO_DIR "
39
+ fi
40
+
38
41
if [[ -e /run_scripts/role/run.sh ]] && [[ " $STOP " = false ]]; then
39
42
echo " running the initial script ..."
40
43
if [[ $REMOTE_REPLICA == " true" ]]; then
You can’t perform that action at this time.
0 commit comments