From 4d4319797bea90dc8d918b702b9f954d6e9c0bc2 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 24 Oct 2020 10:41:58 +0200 Subject: [PATCH] Updated debian install script to handle longer user names --- distribution/debian/preinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/debian/preinst b/distribution/debian/preinst index b1793a6e6..a07a6310c 100644 --- a/distribution/debian/preinst +++ b/distribution/debian/preinst @@ -9,7 +9,7 @@ UPDATER={updater} # Existing nzbdrone packages do not have startup scripts and the process might still be running. # If the user manually installed nzbdrone then the process might still be running too. if [ $1 = "install" ]; then - psNzbDrone=`ps ax -o'user,pid,ppid,unit,args' | grep mono.*NzbDrone\\\\.exe || true` + psNzbDrone=`ps ax -o'user:20,pid,ppid,unit,args' | grep mono.*NzbDrone\\\\.exe || true` if [ ! -z "$psNzbDrone" ]; then # Get the user and optional systemd unit psNzbDroneUser=`echo "$psNzbDrone" | tr -s ' ' | cut -d ' ' -f 1`