Revision fe566679
Added by Justin Sherrill almost 10 years ago
hooks/pre/10-reset_feature.rb | ||
---|---|---|
|
||
def reset_elasticsearch
|
||
Kafo::KafoConfigure.logger.info 'Dropping Elasticsearch!'
|
||
execute('rm -rf /var/lib/elasticsearch/*')
|
||
commands = [
|
||
'service-wait elasticsearch stop',
|
||
'rm -rf /var/lib/elasticsearch/*',
|
||
]
|
||
execute(commands)
|
||
end
|
||
|
||
def execute(commands = [])
|
Also available in: Unified diff
fixes #7150 - stop elasticsearch before resetting data