File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
done
22
22
23
23
echo " Stopping PostgreSQL..."
24
- gosu postgres pg_ctl -D " $PGDATA " -m fast -w stop
24
+ pg_ctl -D " $PGDATA " -m fast -w stop
25
25
26
26
echo " Removing data dir..."
27
27
rm -rf $PGDATA /*
28
28
29
29
echo " Launching pg_basebackup..."
30
30
export PGPASSWORD=$REPLICATOR_PASSWORD
31
- gosu postgres pg_basebackup -R -h lb -D $PGDATA -U replicator -v -P --xlog-method=stream -w
31
+ pg_basebackup -R -h lb -D $PGDATA -U replicator -v -P --xlog-method=stream -w
32
32
33
33
echo " Create physical_replication_slot on server..."
34
34
slot_name=$( echo {{getv " /self/host/hostname" }} | cut -d. -f1 | tr ' -' ' _' )
@@ -40,7 +40,7 @@ recovery_target_timeline = 'latest'
40
40
EOF
41
41
42
42
echo " Starting PostgreSQL..."
43
- gosu postgres pg_ctl -D " $PGDATA " -w start
43
+ pg_ctl -D " $PGDATA " -w start
44
44
45
45
{{else}}
46
46
# master
You can’t perform that action at this time.
0 commit comments