summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-07-29 16:57:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-07-29 16:57:56 +0200
commit718d8facffa71e9e7eb9521f999bc27fd63a31c9 (patch)
tree2136e3a3307126ee539bdac70978f32afdefa3a4
parentd3b841df92c269b092ba68bad6ab75efa024609e (diff)
downloadbin-718d8facffa71e9e7eb9521f999bc27fd63a31c9.tar.gz
bin-718d8facffa71e9e7eb9521f999bc27fd63a31c9.tar.xz
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 <bluewind@xinu.at>
-rwxr-xr-xsyncrepo.sh2
1 files changed, 1 insertions, 1 deletions
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