From b07257e7b0400164aa8acd8ce1e65d3836fd79c4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 29 Jul 2017 17:12:05 +0200 Subject: syncrepo.sh: Unify configuration section Signed-off-by: Florian Pritz --- syncrepo.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/syncrepo.sh b/syncrepo.sh index 682ec79..261a0dd 100755 --- a/syncrepo.sh +++ b/syncrepo.sh @@ -7,17 +7,20 @@ # is run every minute. Performing a simple check via HTTP first can thus save a # lot of traffic. -home="/srv" -target="${home}/repo" -tmp="${home}/tmp" -lock='/var/lock/syncrepo.lck' +target="/srv/repo" +tmp="/srv/tmp" +lock="/var/lock/syncrepo.lck" + # NOTE: You'll probably want to change this or set it to 0 to disable the limit # The default unit is KiB (see man rsync /--bwlimit for more) bwlimit=4096 -# NOTE: most people reading this very likely need to change this since + +# NOTE: Most people reading this very likely need to change this since # rsync.archlinux.org requires you to be a tier 1 mirror source='rsync://rsync.archlinux.org/ftp_tier1' -lastupdate_url="http://rsync.archlinux.org/lastupdate" +lastupdate_url='http://rsync.archlinux.org/lastupdate' + +#### END CONFIG [ ! -d "${target}" ] && mkdir -p "${target}" [ ! -d "${tmp}" ] && mkdir -p "${tmp}" -- cgit v1.2.3-24-g4f1b