[arkdep] Only lock Arkdep once unlock function defined

This commit is contained in:
Dennis ten Hoove 2024-08-23 17:40:55 +02:00
parent a971b605b0
commit 0302c6341d
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

4
arkdep
View file

@ -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,