Merge branch 'master' into distorted
authorMark Wooding <mdw@distorted.org.uk>
Sat, 27 Oct 2012 12:05:11 +0000 (13:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 27 Oct 2012 12:08:28 +0000 (13:08 +0100)
* master:
  Keep track of the mirror target directory in an environment variable.

Conflicts:
bin/run-mirrors
etc/ftpsync-common.conf

bin/run-mirrors
etc/ftpsync-common.conf

index d13619a..8fb9ccc 100755 (executable)
@@ -10,6 +10,7 @@ esac
 
 ## Set up a plausible environment.
 HOME=/var/lib/mirror; export HOME; cd
+MIRRORS=/mnt/ftp/pub/mirrors; export MIRRORS
 PATH=$HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin
 export PATH
 umask 002
index 74f0e9e..19cff88 100644 (file)
@@ -15,7 +15,7 @@
 ## CAREFUL, this directory will contain the mirror. Everything else that
 ## might have happened to be in there WILL BE GONE after the mirror sync!
 : ${LABEL="debian"}
-: ${TO="/mnt/ftp/pub/mirrors/$LABEL/"}
+: ${TO="$MIRRORS/$LABEL/"}
 
 ## The upstream name of the rsync share.
 : ${RSYNC_PATH="$LABEL"}