From b80e3d7a89dfc07fa55827314817698bd43a5905 Mon Sep 17 00:00:00 2001 From: Marjan Schiller Date: Wed, 12 Jun 2013 15:40:44 +0200 Subject: [PATCH] Added image link parameter --- liveboot_set_image.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 # -- 2.39.5