diff --git a/image/cli/mascli/functions/pipeline_config b/image/cli/mascli/functions/pipeline_config index d63336986a..bc3d050c66 100644 --- a/image/cli/mascli/functions/pipeline_config +++ b/image/cli/mascli/functions/pipeline_config @@ -70,10 +70,12 @@ function pipeline_config() { case $MAS_CHANNEL_SELECTION in 1|8.9|8.9.x) MAS_CHANNEL=8.9.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "89" ) ;; 2|8.8|8.8.x) MAS_CHANNEL=8.8.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "88" ) ;; *) @@ -102,40 +104,48 @@ function pipeline_config() { # ----------------------------------------------------------------------- 1) MAS_CHANNEL=8.9.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "89" ) MAS_CATALOG_VERSION=v8-230217-amd64 ;; 2) MAS_CHANNEL=8.8.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "88" ) MAS_CATALOG_VERSION=v8-230217-amd64 ;; # Jan 2023 Catalog # ----------------------------------------------------------------------- 3) MAS_CHANNEL=8.9.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "89" ) MAS_CATALOG_VERSION=v8-230111-amd64 ;; 4) MAS_CHANNEL=8.8.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "88" ) MAS_CATALOG_VERSION=v8-230111-amd64 ;; # Dec 2022 Catalog # ----------------------------------------------------------------------- 5) MAS_CHANNEL=8.9.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "89" ) MAS_CATALOG_VERSION=v8-221228-amd64 ;; 6) MAS_CHANNEL=8.8.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "88" ) MAS_CATALOG_VERSION=v8-221228-amd64 ;; # Nov 2022 Catalog # ----------------------------------------------------------------------- 7) MAS_CHANNEL=8.9.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "89" ) MAS_CATALOG_VERSION=v8-221129-amd64 ;; 8) MAS_CHANNEL=8.8.x + MAS_LICENSE_LINK=$( build_license_link_by_mas_version "88" ) MAS_CATALOG_VERSION=v8-221129-amd64 ;; *) @@ -145,6 +155,15 @@ function pipeline_config() { esac fi true + + echo + echo_h2 "3.1. License Terms" + echo -e "${COLOR_YELLOW} For information about your license, see "$MAS_LICENSE_LINK " To continue with the installation, you must accept the license terms." + prompt_for_confirm "Do you accept the license terms?" LICENSE_RESPONSE + + if [[ "$LICENSE_RESPONSE" == "false" ]]; then + exit 1 + fi echo echo_h2 "4. Configure Operation Mode" diff --git a/image/cli/mascli/functions/utils b/image/cli/mascli/functions/utils index 6695b693e7..1edf4cd117 100644 --- a/image/cli/mascli/functions/utils +++ b/image/cli/mascli/functions/utils @@ -46,6 +46,12 @@ function echo_hr2() { echo "-------------------------------------------------------------------------------" } +function build_license_link_by_mas_version() { + version=$1 + link="https://ibm.biz/MAS"$version"-License" + echo $link +} + # Prompt for confirmation to continue # ----------------------------------------------------------------------------- confirm() {