From 718d8facffa71e9e7eb9521f999bc27fd63a31c9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 29 Jul 2017 16:57:56 +0200 Subject: syncrepo.sh: Move lockfile to /var/lock/ I'm not sure if a symlink race is possible with lockfiles, but better safe than sorry. Signed-off-by: Florian Pritz --- syncrepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncrepo.sh b/syncrepo.sh index 8f62d7a..019e4e1 100755 --- a/syncrepo.sh +++ b/syncrepo.sh @@ -10,7 +10,7 @@ home="/srv" target="${home}/repo" tmp="${home}/tmp" -lock='/tmp/mirrorsync.lck' +lock='/var/lock/syncrepo.lck' # NOTE: You'll probably want to change this or remove the --bwlimit setting in # the rsync call below bwlimit=4096 -- cgit v1.2.3-24-g4f1b