From b06250b3a4688578d9eb1d162eea585a0f3c110c Mon Sep 17 00:00:00 2001 From: doug Date: Wed, 28 Feb 2018 13:20:11 -0500 Subject: [PATCH] remove elasticsearch.yml when running Setup to avoid duplicate values --- usr/sbin/sosetup-elastic | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/sbin/sosetup-elastic b/usr/sbin/sosetup-elastic index be3664f..196932c 100755 --- a/usr/sbin/sosetup-elastic +++ b/usr/sbin/sosetup-elastic @@ -1127,6 +1127,7 @@ pkill autossh # Delete any Elasticsearch or Logstash data rm -rf /nsm/elasticsearch/nodes rm -rf /nsm/logstash/queue/main/* +rm -f /etc/elasticsearch/elasticsearch.yml # Make sure MySQL is running so that we can fully delete the NSM databases [ $SERVER -eq 1 ] && service mysql start >> $LOG 2>&1 # Uncomment any disabled sensors so that we can fully delete them