mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
make PIDFILE a global so it can be used by cleanup()
This commit is contained in:
parent
da02b3749d
commit
e7c3ce111c
@ -364,7 +364,6 @@ pid_check() {
|
|||||||
[[ $ALLOW_MULTI ]] && return
|
[[ $ALLOW_MULTI ]] && return
|
||||||
|
|
||||||
# Set and check for pid file.
|
# Set and check for pid file.
|
||||||
local PIDFILE=/var/run/sbopkg.pid
|
|
||||||
local OTHERPID
|
local OTHERPID
|
||||||
|
|
||||||
if [[ -e $PIDFILE ]]; then
|
if [[ -e $PIDFILE ]]; then
|
||||||
@ -4521,6 +4520,7 @@ SBOVER=svn_r$(cut -d' ' -f2 <<< "$REV")
|
|||||||
DIAG=1
|
DIAG=1
|
||||||
ON_ERROR=ask
|
ON_ERROR=ask
|
||||||
REPOS_FIELDS=7
|
REPOS_FIELDS=7
|
||||||
|
PIDFILE=/var/run/sbopkg.pid
|
||||||
|
|
||||||
# Make sure we are root.
|
# Make sure we are root.
|
||||||
if [[ $(id -u) != 0 ]]; then
|
if [[ $(id -u) != 0 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user