From 0302c6341d0fd36dbd91cffb5fa715d1a673e717 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Fri, 23 Aug 2024 17:40:55 +0200 Subject: [PATCH] [arkdep] Only lock Arkdep once unlock function defined --- arkdep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkdep b/arkdep index 4f8d7f6..f8c372e 100755 --- a/arkdep +++ b/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,