diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-07-29 16:57:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-07-29 16:57:56 +0200 |
commit | 718d8facffa71e9e7eb9521f999bc27fd63a31c9 (patch) | |
tree | 2136e3a3307126ee539bdac70978f32afdefa3a4 | |
parent | d3b841df92c269b092ba68bad6ab75efa024609e (diff) | |
download | bin-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-x | syncrepo.sh | 2 |
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 |