mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
PIDFILE: Move it to global variable.
Fix #7. Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
157dce9f90
commit
f2978fae7c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user