Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up and preserve transport settings #133

Closed
wants to merge 1 commit into from
Closed

clean up and preserve transport settings #133

wants to merge 1 commit into from

Conversation

weslambert
Copy link

Ref: Security-Onion-Solutions/security-onion#1132
"if sensor already configured, preserve transport settings in /etc/elasticsearch/elasticsearch.yml"

Copy link
Owner

@dougburks dougburks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comments. Thanks!

if grep -q transport $ES_YAML; then
:
else
cp -av $SRC/$ES_YAML $ES_YAML
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm reading this correctly, then if ES_YAML does NOT exist (new installation), it will never get copied into place. Is that correct?

Maybe we should do something like this?

if $ES_YAML exists, copy to $ES_YAML_BAK

cp -av $SRC/$ES_YAML $ES_YAML

if $ES_YAML_BAK exists and contains transport settings, then copy those settings to $ES_YAML

@weslambert
Copy link
Author

weslambert commented Nov 8, 2017 via email

@weslambert weslambert closed this Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants