Update Centos VIRL image to version 2.5
[csit.git] / resources / tools / disk-image-builder / centos / build-listmaker.sh
index 52aaff0..98adb90 100755 (executable)
@@ -23,13 +23,23 @@ OUT_DIR="${BUILD_DIR}/output/listmaker"
 if [ "$1" = "centos-7-1511" ]; then
     RELEASE_NAME="csit-centos-7-1511-listmaker"
     PACKER_TEMPLATE="listmaker/centos-7-1511.json"
-elif [ "$1" = "centos-7.3-1611" ]; then
-    RELEASE_NAME="csit-centos-7.3-1611-listmaker"
-    PACKER_TEMPLATE="listmaker/centos-7.3-1611.json"
 else
-    echo "Please provide OS as parameter:"
-    echo "Options: ${0} [centos-7-1511|centos-7.3-1611]"
-    exit 1
+    if [ "$1" = "centos-7.3-1611" ]; then
+        RELEASE_NAME="csit-centos-7.3-1611-listmaker"
+        PACKER_TEMPLATE="listmaker/centos-7.3-1611.json"
+    elif [ "$1" = "centos-7.4-1711" ]; then
+        RELEASE_NAME="csit-centos-7.4-1711-listmaker"
+        PACKER_TEMPLATE="listmaker/centos-7.4-1711.json"
+    else
+        if [ "$1" = "centos-7.6-1810" ]; then
+            RELEASE_NAME="csit-centos-7.6-1810-listmaker"
+            PACKER_TEMPLATE="listmaker/centos-7.6-1810.json"
+        else
+            echo "Please provide OS as parameter:"
+            echo "Options: ${0} [centos-7.3-1611|centos-7.4-1711|centos-7.6-1810]"
+            exit 1
+        fi
+    fi
 fi
 
 VIRL_IMAGE_SUBTYPE=server