From 40ec72a01db692d1e72b34d0b9d1f71d0f17665e Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:20:51 -0300 Subject: [PATCH 01/12] Update idt-installer Add openSuse suport --- linux-installer/idt-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 832ff44..7fcfda2 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -119,7 +119,7 @@ function install_deps { "Linux") if [[ "${DISTRO}" == *Ubuntu* || "${DISTRO}" == *Debian* ]]; then install_deps_with_apt_get - elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* ]]; then + elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* || "${DISTRO}" == *openSUSE*Tumbleweed*]]; then install_deps_with_yum else error "This script has not been updated for use with your linux distribution (${DISTRO})" From bfad699374edfb665ef29485a3047ba4025fdc86 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:27:11 -0300 Subject: [PATCH 02/12] Update idt-installer --- linux-installer/idt-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 7fcfda2..516f251 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -119,7 +119,7 @@ function install_deps { "Linux") if [[ "${DISTRO}" == *Ubuntu* || "${DISTRO}" == *Debian* ]]; then install_deps_with_apt_get - elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* || "${DISTRO}" == *openSUSE*Tumbleweed*]]; then + elif [[ "${DISTRO}" == *openSUSE*Tumbleweed* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* ]]; then install_deps_with_yum else error "This script has not been updated for use with your linux distribution (${DISTRO})" @@ -388,7 +388,7 @@ function main { (( SECS = SECONDS )) TMPDIR=${TMPDIR:-"/tmp"} - PLATFORM=$(uname) + PLATFORM="fedora" ACTION="" # Only use sudo if not running as root: From 7d04d758375d36c9ca11903b7ec7167bb04b4c1e Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:29:26 -0300 Subject: [PATCH 03/12] Update idt-installer Fedora support --- linux-installer/idt-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 516f251..4d67e70 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -119,7 +119,7 @@ function install_deps { "Linux") if [[ "${DISTRO}" == *Ubuntu* || "${DISTRO}" == *Debian* ]]; then install_deps_with_apt_get - elif [[ "${DISTRO}" == *openSUSE*Tumbleweed* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* ]]; then + elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* || "${DISTRO}" == *Fedora* ]]; then install_deps_with_yum else error "This script has not been updated for use with your linux distribution (${DISTRO})" @@ -388,7 +388,7 @@ function main { (( SECS = SECONDS )) TMPDIR=${TMPDIR:-"/tmp"} - PLATFORM="fedora" + PLATFORM=Fedora ACTION="" # Only use sudo if not running as root: From b0535c02f72528f5c1f7cb6a615e288d7ee601d2 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:33:09 -0300 Subject: [PATCH 04/12] Update idt-installer --- linux-installer/idt-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 4d67e70..f62612a 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -388,7 +388,7 @@ function main { (( SECS = SECONDS )) TMPDIR=${TMPDIR:-"/tmp"} - PLATFORM=Fedora + PLATFORM=$(uname) ACTION="" # Only use sudo if not running as root: @@ -417,7 +417,7 @@ function main { ;; "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" - DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo "") + DISTRO=*Fedora* if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi From dccc0a70c70caf1df19a3703cbf3264d9d46eb76 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:55:20 -0300 Subject: [PATCH 05/12] IBM Original version of script Doing the right way for openSUSE-Tumbleweed support --- linux-installer/idt-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index f62612a..832ff44 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -417,7 +417,7 @@ function main { ;; "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" - DISTRO=*Fedora* + DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo "") if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi From f0a72092c4d004598a567f10a1e7ad368075fae6 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 11:58:46 -0300 Subject: [PATCH 06/12] Update idt-installer Adding alternative way to support openSuse Tumbleweed --- linux-installer/idt-installer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 832ff44..71eb018 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -418,6 +418,9 @@ function main { "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo "") + if[["$DISTRO"==*openSUSE*Tumbleweed*]]; then + DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. + fi if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi From 9c72bce7f571017da24f8519b8686d2048009149 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:42:02 -0300 Subject: [PATCH 07/12] Update idt-installer --- linux-installer/idt-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 71eb018..4447f3a 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -417,8 +417,8 @@ function main { ;; "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" - DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo "") - if[["$DISTRO"==*openSUSE*Tumbleweed*]]; then + DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo ""); + if["$DISTRO"==*openSUSE*Tumbleweed*]; then DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. fi if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then From 79c049c7429e257d0fcf19eea779417f0c0f8ddd Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:43:55 -0300 Subject: [PATCH 08/12] Update idt-installer --- linux-installer/idt-installer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 4447f3a..eee30e0 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -418,9 +418,10 @@ function main { "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo ""); - if["$DISTRO"==*openSUSE*Tumbleweed*]; then + if [["$DISTRO"==*openSUSE*Tumbleweed*]]; then DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. fi + ;; if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi From 159a3bda6b70b614cf1fe7749bcb9cb577ed09a3 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:46:36 -0300 Subject: [PATCH 09/12] Update idt-installer --- linux-installer/idt-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index eee30e0..d50ce7b 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -421,7 +421,7 @@ function main { if [["$DISTRO"==*openSUSE*Tumbleweed*]]; then DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. fi - ;; + ; if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi From e84a60c55ec4d879f520df10b6a389dc4043e526 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:48:39 -0300 Subject: [PATCH 10/12] Update idt-installer --- linux-installer/idt-installer | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index d50ce7b..8773d83 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -420,9 +420,7 @@ function main { DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo ""); if [["$DISTRO"==*openSUSE*Tumbleweed*]]; then DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. - fi - ; - if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then + elif [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi ;; From 2a6df1e88d9e658221a4e7bd9b9c648224e1f7c9 Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:53:07 -0300 Subject: [PATCH 11/12] Update idt-installer --- linux-installer/idt-installer | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 8773d83..7a13848 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -417,10 +417,8 @@ function main { ;; "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" - DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo ""); - if [["$DISTRO"==*openSUSE*Tumbleweed*]]; then - DISTRO=*Fedora* #because openSuse Tumbleweed has the same instalation process as fedora has. - elif [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then + DISTRO=*Fedora*; + if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi ;; From 50667eb658a414a76de50886d52273cbaa6c63bc Mon Sep 17 00:00:00 2001 From: Wanghley Soares Martins Date: Fri, 5 Jul 2019 21:57:07 -0300 Subject: [PATCH 12/12] Update idt-installer --- linux-installer/idt-installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-installer/idt-installer b/linux-installer/idt-installer index 7a13848..4e67f12 100755 --- a/linux-installer/idt-installer +++ b/linux-installer/idt-installer @@ -417,7 +417,7 @@ function main { ;; "Linux") # Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian" - DISTRO=*Fedora*; + DISTRO="Fedora"; if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL* && "$DISTRO" != *Fedora* ]]; then warn "Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros" fi