Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Remove redundant source call #10

Merged
merged 3 commits into from
Sep 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bin/sostat
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
# Stephane Chazelas
# Shane Castle

# Determine if we're running Snort or Suricata
source /etc/nsm/securityonion.conf
# Import settings file
if [ -f /etc/nsm/securityonion.conf ]; then
source /etc/nsm/securityonion.conf
else
echo "Missing /etc/nsm/securityonion.conf file!" && exit 1
fi

# Define a banner to separate sections
banner="========================================================================="
Expand Down Expand Up @@ -223,7 +227,7 @@ if (!(/usr/lib/update-notifier/apt-check --human-readable | grep -c '0') > 1); t
echo "Run 'sudo soup' to install the latest updates."
fi

if [ -f /etc/nsm/securityonion.conf ] && source /etc/nsm/securityonion.conf && [ "$ELSA" = "YES" ]; then
if [ "$ELSA" = "YES" ]; then
echo
header "ELSA"
echo "Syslog-ng"
Expand Down