Browse Source

bash logic

135-scirius
Steven Foerster 5 years ago
parent
commit
7faf9f3e09
  1. 2
      scripts/env/suricata_init.sh

2
scripts/env/suricata_init.sh vendored

@ -3,7 +3,7 @@
set -e set -e
# detect if suricata is installed # detect if suricata is installed
if [[ ! $(dpkg-query -W -f='${Status}' suricata 2>/dev/null | grep -c "ok installed") ]]; then if [[ $(dpkg-query -W -f='${Status}' suricata 2>/dev/null | grep -c "ok installed") -eq 1 ]]; then
echo "Installed" echo "Installed"
exit 0 exit 0
fi fi

Loading…
Cancel
Save