X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fdisk-image-builder%2Fubuntu%2Fbuild-listmaker.sh;h=7f6c492e55794747f6f139d8b2f39e71fa34d947;hb=b53a6ff84896052673a0dfc5c27d2435f5010ae3;hp=59b44e5a19718aaf567c1569671e639534fef25d;hpb=9d378548cc86028c55baf17260d32d0055603b78;p=csit.git diff --git a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh index 59b44e5a19..7f6c492e55 100755 --- a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh +++ b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2016 Cisco and/or its affiliates. +# Copyright (c) 2018 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -20,8 +20,19 @@ BUILD_DIR="$(pwd)/build" PACKER_DIR="${BUILD_DIR}/packer" OUT_DIR="${BUILD_DIR}/output/listmaker" -RELEASE_NAME="csit-ubuntu-14.04.4-listmaker" -PACKER_TEMPLATE="listmaker/ubuntu-14.04.4.json" +if [ "$1" = "ubuntu-14.04.4" ] +then + RELEASE_NAME="csit-ubuntu-14.04.4-listmaker" + PACKER_TEMPLATE="listmaker/ubuntu-14.04.4.json" +elif [ "$1" = "ubuntu-16.04.1" ] +then + RELEASE_NAME="csit-ubuntu-16.04.1-listmaker" + PACKER_TEMPLATE="listmaker/ubuntu-16.04.1.json" +else + echo "Please provide OS as parameter:" + echo "Options: ${0} [ubuntu-14.04.4|ubuntu-16.04.1]" + exit 1 +fi VIRL_IMAGE_SUBTYPE=server VIRL_IMAGE_NAME="${RELEASE_NAME}"