From 75d49845f24c669e9590535658217ebf1aaf42c5 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 1 Oct 2020 10:43:33 -0400 Subject: [PATCH] changes to analyst setup script --- setup/so-analyst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/setup/so-analyst b/setup/so-analyst index 277fb2865..18f25644c 100755 --- a/setup/so-analyst +++ b/setup/so-analyst @@ -20,6 +20,41 @@ if [ "$(id -u)" -ne 0 ]; then exit 1 fi +OS=$(grep PRETTY_NAME /etc/os-release | grep 'CentOS Linux 7') +if [ $? -ne 0 ]; then + echo "This is an unsupported OS. Please use CentOS 7 to install the analyst node." + exit 2 +fi + +if [[ "$manufacturer" == "Security Onion Solutions" && "$family" == "Automated" ]]; then + INSTALL=yes +else + INSTALL='' +fi + +while [[ $INSTALL != "yes" ]] && [[ $INSTALL != "no" ]]; do + clear + echo "###########################################" + echo "## ** W A R N I N G ** ##" + echo "## _______________________________ ##" + echo "## ##" + echo "## Installing the Security Onion ##" + echo "## analyst node on this device will ##" + echo "## make permanenet changes to ##" + echo "## the system. ##" + echo "## ##" + echo "###########################################" + echo "Do you wish to continue? (Type the entire word 'yes' to proceed or 'no' to exit)" + read INSTALL +done + +if [[ $INSTALL == "no" ]]; then + echo "Exiting analyst node installation." + exit 0 +fi + + + # Install a GUI text editor yum -y install gedit