detect if installed

This commit is contained in:
Steven Foerster
2021-03-01 20:47:20 -05:00
parent ef6c8f4c2c
commit a58bee261a
+6
View File
@@ -2,6 +2,12 @@
set -e
# detect if suricata is installed
if [[ ! $(dpkg-query -W -f='${Status}' suricata 2>/dev/null | grep -c "ok installed") ]]; then
echo "Installed"
exit 0
else
source /opt/mistborn/scripts/subinstallers/platform.sh
# minimal dependencies