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 c7c30de commit 9d6b154Copy full SHA for 9d6b154
nix/tools/dbmate-tool.sh.in
@@ -32,13 +32,15 @@ cleanup() {
32
echo "Stopping PostgreSQL gracefully..."
33
pkill -f "postgres" || true # Adjust this if you have a specific way to stop the service
34
sleep 5 # Wait for PostgreSQL to shut down
35
+ else
36
+ echo "PostgreSQL is not running, skipping stop."
37
fi
38
39
# Verify cleanup
40
if pgrep -f "postgres" >/dev/null; then
41
echo "Warning: Some PostgreSQL processes could not be cleaned up:"
42
pgrep -f "postgres"
- return 1
43
+ exit 1 # Exit with an error code
44
else
45
echo "Cleanup completed successfully"
46
0 commit comments