Keep track of the mirror target directory in an environment variable.
[mirror-admin] / etc / ftpsync-common.conf
index 61712f4..5af48ee 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/mirror/$LABEL/"}
+: ${TO="$MIRRORS/$LABEL/"}
 
 ## The upstream name of the rsync share.
 : ${RSYNC_PATH="$LABEL"}