From d3b25e244ceff997ff4a2e0887f730229a2a4112 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Tue, 12 Oct 2021 16:52:42 +0200 Subject: [PATCH] enable transfer of built website to multiple hosts --- build/buildrun.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/buildrun.sh b/build/buildrun.sh index e0c4f66667..03498e407e 100755 --- a/build/buildrun.sh +++ b/build/buildrun.sh @@ -70,7 +70,12 @@ buildrun(){ # symlinks which we copy while rsyncing. These messages are issued even if # the files have not changed and clutter up the output, so we filter them # out. - rsync -av --copy-unsafe-links --del "$stagedir/" "$target/" | grep -v "copying unsafe symlink" | t_logstatus stagesync + { + for destination in ${target//,/ }; do + echo "Syncing files to $(echo "$destination" | grep -Po "(?<=@)[^:]+")" + rsync -av --copy-unsafe-links --del "$stagedir/" "$destination/" | grep -v "copying unsafe symlink" + done + } | t_logstatus stagesync fi date +%s > "$(logname end_time)"