Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOAR-14960] Update Install Script (#1924) #2169

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions tools/update-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,26 @@ platform=$(uname)

if [[ "${platform}" == "Darwin" ]]; then
echo "[*] Executing update/installation for MacOS!"
echo "[*] Installing/updating icon-plugin via homebrew..."
brew tap rapid7/icon-plugin-homebrew https://github.com/rapid7/icon-plugin-homebrew > /dev/null
brew reinstall icon-plugin > /dev/null; true

echo "[*] Installing/updating jq via homebrew"
brew reinstall jq > /dev/null; true

elif [[ "${platform}" == "Linux" ]] && [[ -f /etc/debian_version ]]; then
echo "[*] Executing update/installation for Debian Linux!"
curl -s https://packagecloud.io/install/repositories/rapid7/insightconnect_plugin_tooling/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get -qq install -y icon-plugin

echo "[*] Installing/updating jq..."
sudo apt-get -qq install -y jq

elif [[ "${platform}" == "Linux" ]] && [[ -f /etc/redhat-release ]]; then
echo "[*] Executing update/installation for Red Hat Linux!"
curl -s https://packagecloud.io/install/repositories/rapid7/insightconnect_plugin_tooling/script.rpm.sh | sudo bash
sudo yum install -q -y icon-plugin

echo "[*] Installing/updating jq..."
sudo yum install -q -y jq

else
echo "[!] Unsupported OS found! Unable to install icon-plugin and jq!"
echo "[!] Unsupported OS found! Unable to install jq!"
fi

echo "[*] Installing/updating insight-plugin..."
sudo -H python3 -m pip install --user --upgrade insight-plugin > /dev/null; true

echo "[*] Installing InsightConnect validator tooling..."
sudo -H python3 -m pip install --user --upgrade insightconnect-integrations-validators > /dev/null; true

Expand Down
Loading