Skip to content

Commit c981ad5

Browse files
Stop Postgres After Restore (#46)
Signed-off-by: souravbiswassanto <[email protected]>
1 parent 08c67cf commit c981ad5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/restore.sh

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ fi
142142

143143
if [[ ! -e "$RECOVERY_FILE" && "$INSIDE" == "true" ]]; then
144144
echo "database successfully recovered...."
145+
pg_ctl stop -D "$PGDATA" -w >/dev/null 2>&1 || echo "Warning: PostgreSQL stop command failed but ignoring..."
145146
exit 0
146147
else
147148
exit 1

0 commit comments

Comments
 (0)