CSIT-467 Add libpcap-dev packages to VIRL image
[csit.git] / resources / tools / disk-image-builder / ubuntu / build-listmaker.sh
index 59b44e5..91c952f 100755 (executable)
@@ -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}"