[macOS] Stop versioned postgresql service instead of the general one (#6166)

* Stop versioned postgresql service instead of the general one

* Start versioned postgres service
This commit is contained in:
Mikhail Timofeev
2022-08-30 20:06:24 +03:00
committed by GitHub
parent 566a276495
commit cda85a59ac

View File

@@ -8,7 +8,8 @@ toolsetVersion=$(get_toolset_value '.postgresql.version')
brew_smart_install postgresql@$toolsetVersion brew_smart_install postgresql@$toolsetVersion
# Service PostgreSQL should be started before use # Service PostgreSQL should be started before use
brew services start postgresql postgreService=$(brew services list | grep -oe "postgresql\S*")
brew services start $postgreService
# Verify PostgreSQL is ready for accept incoming connections # Verify PostgreSQL is ready for accept incoming connections
echo "Check PostgreSQL service is running" echo "Check PostgreSQL service is running"
@@ -27,6 +28,6 @@ while [ $i -gt 0 ]; do
done done
# Stop PostgreSQL # Stop PostgreSQL
brew services stop postgresql brew services stop $postgreService
invoke_tests "Databases" "PostgreSQL" invoke_tests "Databases" "PostgreSQL"