-fix negation for shutdown of PG

This commit is contained in:
Christian Grothoff 2023-02-06 18:37:05 +01:00
parent c0e6ce7519
commit 5c983bd05e
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -96,7 +96,7 @@ function cleanup()
function exit_cleanup()
{
echo "Running exit-cleanup"
if test -z "${POSTGRES_PATH:-}"
if test ! -z "${POSTGRES_PATH:-}"
then
echo "Stopping Postgres at ${POSTGRES_PATH}"
${POSTGRES_PATH}/pg_ctl -D $TMPDIR -l /dev/null stop &> /dev/null || true