SHA256
1
0
forked from pool/postgresql14
Reinhard Max 2023-04-19 13:25:42 +00:00 committed by Git OBS Bridge
parent a1ab1284eb
commit 13e33675b7

View File

@ -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