zsc-sync.sh: fix lock name

This commit is contained in:
Alice Gaudon 2021-03-08 12:21:51 +01:00
parent f4bc6336f2
commit b8f3cb9d1a
1 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@ fi
### LOCK ###
echo "Locking ZSC"
if ! lockfile-create -p -r 2 "zsc"; then
echo "Locking $0"
if ! lockfile-create -p -r 2 "$0"; then
echo "Another backup is running, aborting"
exit 49
fi
@ -174,5 +174,5 @@ done
### UNLOCK ###
echo "Unlocking ZSC"
lockfile-remove "zsc"
echo "Unlocking $0"
lockfile-remove "$0"