From: Holger Levsen Date: Thu, 6 Sep 2012 16:15:14 +0000 (+0200) Subject: correct rsync destionation 2 and make 'set -e' work as expected X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e0a2e43d0dcb4dd1f76f3f0daff9f6c40223a99a;p=profitbricks%2Fjenkins-build-scripts.git correct rsync destionation 2 and make 'set -e' work as expected --- 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