From: Julien Cristau Date: Wed, 30 Aug 2017 07:08:03 +0000 (+0200) Subject: Make the static-mirror-run log per component X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3fbf289710dfe590f609fb55b5d6c2ea3ada9037;p=mirror%2Fdsa-puppet.git Make the static-mirror-run log per component --- diff --git a/modules/roles/files/static-mirroring/static-mirror-run b/modules/roles/files/static-mirroring/static-mirror-run index 119d1055c..45d73458b 100755 --- a/modules/roles/files/static-mirroring/static-mirror-run +++ b/modules/roles/files/static-mirroring/static-mirror-run @@ -62,13 +62,14 @@ SYNC_SOURCE=${1:-}; shift SYNC_SERIAL=${1:-}; shift || true if [ -z "$COMPONENTDIR" ]; then usage >&2; exit 1; fi if [ -z "$SYNC_SOURCE" ]; then usage >&2; exit 1; fi +COMPONENT=$(basename ${COMPONENTDIR}) RSYNC="rsync" RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links" RSYNC_SSH_OPTIONS="ssh -o AddressFamily=inet -o BatchMode=yes" LOGDIR="$HOME/logs" -LOGFILE="$LOGDIR/$NAME-run.log" +LOGFILE="$LOGDIR/$NAME-run-${COMPONENT}.log" ALPHA="tree-a"