From: Marjan Schiller Date: Wed, 12 Jun 2013 13:40:44 +0000 (+0200) Subject: Added image link parameter X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=b80e3d7a89dfc07fa55827314817698bd43a5905;p=profitbricks%2Fjenkins-build-scripts.git Added image link parameter --- diff --git a/liveboot_set_image.sh b/liveboot_set_image.sh index f37eeb9..84e6052 100755 --- a/liveboot_set_image.sh +++ b/liveboot_set_image.sh @@ -8,6 +8,16 @@ set -e export echo +# +# check if we have a LIVEBOOT_IMAGE_LINK +# +if [ "$LIVEBOOT_IMAGE_LINK" != "" ] ; then + echo "Ok, got LIVEBOOT_IMAGE_LINK=$LIVEBOOT_IMAGE_LINK, which is valid." +else + echo "Fail, no LIVEBOOT_IMAGE_LINK set." + exit 1 +fi + # # check if we have a LIVEBOOT_BUILD_NUMBER # @@ -33,7 +43,7 @@ fi # # create pending-approval link # -ssh -oStrictHostKeyChecking=no -i ~/.ssh/id_ritest root@riserver "rm -f /srv/mirror/liveboot/autotest; ln -sfv $(basename $SOURCE_DIR) /srv/mirror/liveboot/autotest" +ssh -oStrictHostKeyChecking=no -i ~/.ssh/id_ritest root@riserver "rm -f /srv/mirror/liveboot/$LIVEBOOT_IMAGE_LINK; ln -sfv $(basename $SOURCE_DIR) /srv/mirror/liveboot/$LIVEBOOT_IMAGE_LINK" # # finish #