From 9bae41c9932114e980fbe44496160e92482620f815c3c33f2d8a2a85e8808769 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 19 Apr 2023 13:26:38 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql13?expand=0&rev=66 --- postgresql13.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/postgresql13.spec b/postgresql13.spec index f15081d..670f616 100644 --- a/postgresql13.spec +++ b/postgresql13.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