[arkdep] Only lock Arkdep once unlock function defined
This commit is contained in:
parent
a971b605b0
commit
0302c6341d
1 changed files with 2 additions and 2 deletions
4
arkdep
4
arkdep
|
@ -13,8 +13,6 @@ if [[ -f /tmp/arkdep.lock ]]; then
|
|||
exit 5
|
||||
fi
|
||||
|
||||
touch /tmp/arkdep.lock
|
||||
|
||||
## Set common variables
|
||||
#
|
||||
declare -r arkdep_dir="$(readlink -m $ARKDEP_ROOT/arkdep)"
|
||||
|
@ -118,6 +116,8 @@ unlock_and_quit () {
|
|||
exit $1
|
||||
}
|
||||
|
||||
touch /tmp/arkdep.lock
|
||||
|
||||
## Healthcheck
|
||||
#
|
||||
# Set common variables for healthcheck and cleanup,
|
||||
|
|
Loading…
Add table
Reference in a new issue