From cfdfcda718782208d2717dfbcddb16dfc453d822 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 19 Dec 2016 09:30:28 +0100 Subject: Update STAGEDIR, FINALDIR in remaining scripts Fixes: 931a49ce1da1063 ("rsync-gen: be clear about variable purposes.") --- datestamp.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'datestamp.sh') diff --git a/datestamp.sh b/datestamp.sh index 0879758..5adad9f 100755 --- a/datestamp.sh +++ b/datestamp.sh @@ -5,14 +5,14 @@ umask 022 # ensure globally readable perms on new files for rsyncd source /usr/local/bin/mastermirror/rsync-gen.vars -# The only time ${STAGEDIR}/metadata should not exist is when rsync-gen.sh +# The only time ${STAGEDIR_repo_gentoo}/metadata should not exist is when rsync-gen.sh # hasn't ran even once yet -if [[ -d ${STAGEDIR}/metadata ]]; then - /bin/date -u '+%s %c' > ${STAGEDIR}/metadata/timestamp.x.tmp - /bin/mv ${STAGEDIR}/metadata/timestamp.x.tmp ${STAGEDIR}/metadata/timestamp.x +if [[ -d ${STAGEDIR_repo_gentoo}/metadata ]]; then + /bin/date -u '+%s %c' > ${STAGEDIR_repo_gentoo}/metadata/timestamp.x.tmp + /bin/mv ${STAGEDIR_repo_gentoo}/metadata/timestamp.x.tmp ${STAGEDIR_repo_gentoo}/metadata/timestamp.x fi -if [[ -d ${FINALDIR}/metadata ]]; then - /bin/date -R -u > ${FINALDIR}/metadata/timestamp.chk.tmp - /bin/mv ${FINALDIR}/metadata/timestamp.chk.tmp ${FINALDIR}/metadata/timestamp.chk +if [[ -d ${FINALDIR_repo_gentoo}/metadata ]]; then + /bin/date -R -u > ${FINALDIR_repo_gentoo}/metadata/timestamp.chk.tmp + /bin/mv ${FINALDIR_repo_gentoo}/metadata/timestamp.chk.tmp ${FINALDIR_repo_gentoo}/metadata/timestamp.chk fi -- cgit v1.2.3-65-gdbad