Skip to content

Commit

Permalink
[SOAR-14960] Update Install Script (#1924) (#2169)
Browse files Browse the repository at this point in the history
* Initial commit

* Added comments on next steps

* Update script

* Move pip install and remove comments

* update loggers
  • Loading branch information
cmcnally-r7 authored Dec 8, 2023
1 parent d229fd5 commit c11d88c
Showing 1 changed file with 5 additions and 12 deletions.
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

0 comments on commit c11d88c

Please sign in to comment.