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

Remove redundant source call #10

merged 3 commits into from
Sep 21, 2016

Conversation

zestysoft
Copy link
Contributor

At the top of the script is a call to
'source /etc/nsm/securityonion.conf' however, later in the script
when there's a check if ELSA is defined, another call to source
/etc/nsm/securityonion.conf is done (along with check to see if the
file exists first). I simply moved the file check code up to the top
of the script, removed the redundant source call, and simplified the
if statement that checks if ELSA is defined.

At the top of the script, a call to source /etc/nsm/securityonion.conf
however, later in the script when there's a check if ELSA is defined
another call to source /etc/nsm/securityonion.conf is done (along
with check to see if the file exists first).  I simply moved
the file check code up to the top of the script and simplified the
if statement that looks to see if ELSA is defined.
At the top of the script is a call to
'source /etc/nsm/securityonion.conf' however, later in the script
when there's a check if ELSA is defined, another call to source
/etc/nsm/securityonion.conf is done (along with check to see if the
file exists first).  I simply moved the file check code up to the top
of the script and simplified the if statement that checks if ELSA
is defined.
…onion-sostat into pull-request-nullglob

Amend the commit message
@dougburks
Copy link
Contributor

Thanks @zestysoft !

@dougburks dougburks merged commit 2b2affa into Security-Onion-Solutions:master Sep 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants