File tree Expand file tree Collapse file tree 2 files changed +25
-34
lines changed Expand file tree Collapse file tree 2 files changed +25
-34
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- RECOVERY_DONE_FILE=" /tmp/recovery.done"
4
- if [[ " $PITR_RESTORE " == " true" ]]; then
5
- while true ; do
6
- sleep 2
7
- echo " Point In Time Recovery In Progress. Waiting for $RECOVERY_DONE_FILE file"
8
- if [[ -e " $RECOVERY_DONE_FILE " ]]; then
9
- echo " $RECOVERY_DONE_FILE found."
10
- break
11
- fi
12
- done
13
- fi
14
-
15
- if [[ -e " $RECOVERY_DONE_FILE " ]]; then
16
- rm $RECOVERY_DONE_FILE
17
- fi
18
-
19
3
script_name=${0##*/ }
20
4
21
5
function timestamp() {
@@ -45,8 +29,20 @@ while [ true ]; do
45
29
if [ -f " /scripts/seqno" ]; then
46
30
rm /scripts/seqno
47
31
fi
48
-
32
+ RECOVERY_DONE_FILE=" /tmp/recovery.done"
33
+ if [[ " $PITR_RESTORE " == " true" ]]; then
34
+ while true ; do
35
+ sleep 2
36
+ echo " Point In Time Recovery In Progress. Waiting for $RECOVERY_DONE_FILE file"
37
+ if [[ -e " $RECOVERY_DONE_FILE " ]]; then
38
+ echo " $RECOVERY_DONE_FILE found."
39
+ break
40
+ fi
41
+ done
42
+ fi
49
43
# start on-start script
50
44
./scripts/on-start.sh $@
51
45
sleep 1
52
46
done
47
+
48
+
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- RECOVERY_DONE_FILE=" /tmp/recovery.done"
4
- if [[ " $PITR_RESTORE " == " true" ]]; then
5
- while true ; do
6
- sleep 2
7
- echo " Point In Time Recovery In Progress. Waiting for $RECOVERY_DONE_FILE file"
8
- if [[ -e " $RECOVERY_DONE_FILE " ]]; then
9
- echo " $RECOVERY_DONE_FILE found."
10
- break
11
- fi
12
- done
13
- fi
14
-
15
- if [[ -e " $RECOVERY_DONE_FILE " ]]; then
16
- rm $RECOVERY_DONE_FILE
17
- fi
18
-
19
3
script_name=${0##*/ }
20
4
21
5
function timestamp() {
@@ -45,8 +29,19 @@ while [ true ]; do
45
29
if [ -f " /scripts/seqno" ]; then
46
30
rm /scripts/seqno
47
31
fi
48
-
32
+ RECOVERY_DONE_FILE=" /tmp/recovery.done"
33
+ if [[ " $PITR_RESTORE " == " true" ]]; then
34
+ while true ; do
35
+ sleep 2
36
+ echo " Point In Time Recovery In Progress. Waiting for $RECOVERY_DONE_FILE file"
37
+ if [[ -e " $RECOVERY_DONE_FILE " ]]; then
38
+ echo " $RECOVERY_DONE_FILE found."
39
+ break
40
+ fi
41
+ done
42
+ fi
49
43
# start on-start script
50
44
./scripts/std-replication-on-start.sh $@
51
45
sleep 1
52
46
done
47
+
You can’t perform that action at this time.
0 commit comments