From 5fc91ddb1e22f564819ee8db5868d77cde9621d3 Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Fri, 31 Jul 2020 15:31:39 -0400 Subject: [PATCH 1/3] [fix] Add commands for proper use of diag --upload feature --- base/centos-7/install.sh | 2 ++ base/debian-10/install.sh | 2 ++ base/debian-9/install.sh | 2 ++ base/redhat-8/install.sh | 2 ++ 4 files changed, 8 insertions(+) diff --git a/base/centos-7/install.sh b/base/centos-7/install.sh index 7de4088b..4e307475 100755 --- a/base/centos-7/install.sh +++ b/base/centos-7/install.sh @@ -27,6 +27,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin +ln -s busybox clear +ln -s busybox find ln -s busybox killall ln -s busybox netstat ln -s busybox nslookup diff --git a/base/debian-10/install.sh b/base/debian-10/install.sh index a2033e53..410aed75 100755 --- a/base/debian-10/install.sh +++ b/base/debian-10/install.sh @@ -43,6 +43,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin +ln -s busybox clear +ln -s busybox find ln -s busybox killall ln -s busybox netstat ln -s busybox nslookup diff --git a/base/debian-9/install.sh b/base/debian-9/install.sh index 2f04be36..65bdaf88 100755 --- a/base/debian-9/install.sh +++ b/base/debian-9/install.sh @@ -43,6 +43,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin +ln -s busybox clear +ln -s busybox find ln -s busybox diff ln -s busybox killall ln -s busybox netstat diff --git a/base/redhat-8/install.sh b/base/redhat-8/install.sh index 2bb08447..d4aa5fb1 100755 --- a/base/redhat-8/install.sh +++ b/base/redhat-8/install.sh @@ -50,6 +50,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin +ln -s busybox clear +ln -s busybox find ln -s python2 python || true ln -s busybox diff || true ln -s busybox hostname || true From 4c8ad2aed6c994b41326bd1e254bd2c1a1c51f47 Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Fri, 31 Jul 2020 15:33:58 -0400 Subject: [PATCH 2/3] Update install.sh --- base/redhat-8/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/redhat-8/install.sh b/base/redhat-8/install.sh index d4aa5fb1..95b28064 100755 --- a/base/redhat-8/install.sh +++ b/base/redhat-8/install.sh @@ -50,8 +50,8 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin -ln -s busybox clear -ln -s busybox find +ln -s busybox clear || true +ln -s busybox find || true ln -s python2 python || true ln -s busybox diff || true ln -s busybox hostname || true From 31fd33f609d0d9cc1bdd13dbdc90b8ce7a7a67f5 Mon Sep 17 00:00:00 2001 From: Ryan Faircloth <35384120+rfaircloth-splunk@users.noreply.github.com> Date: Fri, 31 Jul 2020 16:35:39 -0400 Subject: [PATCH 3/3] Update install.sh --- base/centos-7/install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/base/centos-7/install.sh b/base/centos-7/install.sh index 4e307475..7de4088b 100755 --- a/base/centos-7/install.sh +++ b/base/centos-7/install.sh @@ -27,8 +27,6 @@ tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ rm /usr/bin/scloud.tar.gz cd /bin -ln -s busybox clear -ln -s busybox find ln -s busybox killall ln -s busybox netstat ln -s busybox nslookup