From c7e838385f55a85059ff5eb559336c255771185b Mon Sep 17 00:00:00 2001 From: chebatory Date: Sat, 5 Mar 2022 06:08:48 -0800 Subject: [PATCH] some more fixes for Ubuntu (Suricata repository added) --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 881a522..63e1062 100644 --- a/install.sh +++ b/install.sh @@ -264,8 +264,11 @@ change_hostname() { install_package() { # Install associated packages by using aptitude. - if [[ $1 == "dnsmasq" || $1 == "hostapd" || $1 == "tshark" || $1 == "sqlite3" || $1 == "suricata" || $1 == "unclutter" || $1 == "swig" || $1 == "curl" ]]; then + if [[ $1 == "dnsmasq" || $1 == "hostapd" || $1 == "tshark" || $1 == "sqlite3" || $1 == "unclutter" || $1 == "swig" || $1 == "curl" ]]; then apt-get install $1 -y + elif [[ $1 == "suricata" ]];then + add-apt-repository ppa:oisf/suricata-stable + apt-get install suricata -y elif [[ $1 == "zeek" ]]; then distrib=$(cat /etc/os-release | grep -E "^ID=" | cut -d"=" -f2) version=$(cat /etc/os-release | grep "VERSION_ID" | cut -d"\"" -f2)