From e7c3ce111c81dcc8786dab4f5b34181047b2985b Mon Sep 17 00:00:00 2001 From: goarilla Date: Thu, 6 Aug 2015 20:49:32 +0200 Subject: [PATCH] make PIDFILE a global so it can be used by cleanup() --- src/usr/sbin/sbopkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index af1b2c7..7139e31 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -364,7 +364,6 @@ pid_check() { [[ $ALLOW_MULTI ]] && return # Set and check for pid file. - local PIDFILE=/var/run/sbopkg.pid local OTHERPID if [[ -e $PIDFILE ]]; then @@ -4521,6 +4520,7 @@ SBOVER=svn_r$(cut -d' ' -f2 <<< "$REV") DIAG=1 ON_ERROR=ask REPOS_FIELDS=7 +PIDFILE=/var/run/sbopkg.pid # Make sure we are root. if [[ $(id -u) != 0 ]]; then