From 186cd11f50f16a4482f5c0acb2de6ef7eadcba6e7f38255f557fb5b9ad8b27dc Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 19 Apr 2023 12:42:48 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql15?expand=0&rev=24 --- postgresql15.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/postgresql15.spec b/postgresql15.spec index 797dff1..47dfbe6 100644 --- a/postgresql15.spec +++ b/postgresql15.spec @@ -822,9 +822,7 @@ fi # Restart only when we are updating the currently running version test -x /usr/bin/systemctl && MAINPID=$(/usr/bin/systemctl show postgresql.service --property=MainPID --value) ||: -if test -n "$MAINPID" && test "$MAINPID" -ne 0 && - readlink -n /proc/$MAINPID/exe | grep -Fq " (deleted)" -then +if test -n "$MAINPID" && test "$MAINPID" -ne 0; then BIN=$(readlink -n /proc/$MAINPID/exe) DIR=$(dirname ${BIN% *}) if test "$DIR" = "%pgbindir" -o "$DIR" = "%_bindir"; then