From 3fbf289710dfe590f609fb55b5d6c2ea3ada9037 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 30 Aug 2017 09:08:03 +0200 Subject: [PATCH] Make the static-mirror-run log per component --- modules/roles/files/static-mirroring/static-mirror-run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.20.1