diff options
Diffstat (limited to 'resources/tools/disk-image-builder/ubuntu/build-listmaker.sh')
-rwxr-xr-x | resources/tools/disk-image-builder/ubuntu/build-listmaker.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh index 59b44e5a19..511499512c 100755 --- a/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh +++ b/resources/tools/disk-image-builder/ubuntu/build-listmaker.sh @@ -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}" |