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

Commit

Permalink
Merge pull request #10 from zestysoft/pull-request-nullglob
Browse files Browse the repository at this point in the history
Remove redundant source call
  • Loading branch information
dougburks authored Sep 21, 2016
2 parents 86cbe0a + be34db5 commit 2b2affa
Showing 1 changed file with 7 additions and 3 deletions.
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

# make sure if statements using wildcards for filenames don't equal true when no files exist
shopt -s nullglob
Expand Down Expand Up @@ -226,7 +230,7 @@ if [ $(/usr/lib/update-notifier/apt-check --human-readable | grep -c '0') -ne 2
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

0 comments on commit 2b2affa

Please sign in to comment.