zsc-sync.sh: fix lock name
This commit is contained in:
parent
f4bc6336f2
commit
b8f3cb9d1a
@ -19,8 +19,8 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
### LOCK ###
|
### LOCK ###
|
||||||
echo "Locking ZSC"
|
echo "Locking $0"
|
||||||
if ! lockfile-create -p -r 2 "zsc"; then
|
if ! lockfile-create -p -r 2 "$0"; then
|
||||||
echo "Another backup is running, aborting"
|
echo "Another backup is running, aborting"
|
||||||
exit 49
|
exit 49
|
||||||
fi
|
fi
|
||||||
@ -174,5 +174,5 @@ done
|
|||||||
|
|
||||||
|
|
||||||
### UNLOCK ###
|
### UNLOCK ###
|
||||||
echo "Unlocking ZSC"
|
echo "Unlocking $0"
|
||||||
lockfile-remove "zsc"
|
lockfile-remove "$0"
|
||||||
|
Loading…
Reference in New Issue
Block a user