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 #32 from weslambert/master
Browse files Browse the repository at this point in the history
run so-allow-elastic if Elastic enabled
  • Loading branch information
dougburks authored Dec 8, 2017
2 parents a4e60ad + 13f0d0a commit 46c5374
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/so-allow
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
exit
fi

#########################################
# Check if Elastic is enabled
#########################################
. /etc/nsm/securityonion.conf
if [ "$LOGSTASH_ENABLED" = "yes" ] || [ "$ELASTICSEARCH_ENABLED" = "yes" ] && [ -x /usr/sbin/so-allow-elastic ] ; then
/usr/sbin/so-allow-elastic
exit 0
fi

#########################################
# Prompt user for kind of device
#########################################
Expand Down

0 comments on commit 46c5374

Please sign in to comment.