summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsyncrepo.sh15
1 files 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}"