From e0a2e43d0dcb4dd1f76f3f0daff9f6c40223a99a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 6 Sep 2012 18:15:14 +0200 Subject: [PATCH] correct rsync destionation 2 and make 'set -e' work as expected --- liveboot_build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/liveboot_build.sh b/liveboot_build.sh index 58d4143..5014b20 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -5,6 +5,7 @@ set -e + export export DIST=squeeze @@ -38,7 +39,7 @@ RSYNC_FILTER='' # ri server RSYNC_DST1="liveboot@riserver/liveboot/" # pbb -RSYNC_DST2="liveboot@10.254.1.1/livebuild/" +RSYNC_DST2="liveboot@10.254.1.1/liveboot/" figlet "still work in progress, but... getting there" @@ -69,9 +70,11 @@ sudo rm liveboot -Rf # echo echo "Now rsyncing results to $RSYNC_DST1 ..." -rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST1 && figlet "mirror OK" +rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST1 +figlet "mirror to r+i OK" echo "Now rsyncing results to $RSYNC_DST1 ..." -rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST2 && figlet "mirror OK" +rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST2 +figlet "mirror to pbb OK" # # cleanup /srv/mirror, keep MAX number of images -- 2.39.5