Fix mispelled db filename; ensure ELASTICCURL is used for loading config objects

This commit is contained in:
Jason Ertel
2021-06-03 10:11:10 -04:00
parent 2af43d62eb
commit 58ae3479dc
2 changed files with 2 additions and 2 deletions

View File

@@ -12,4 +12,4 @@ sed -i "s/PLACEHOLDER/{{ MANAGER }}/g" /opt/so/conf/kibana/saved_objects.ndjson
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "{{ ELASTICCURL }}"
# Load saved objects
curl -L -X POST "localhost:5601/api/saved_objects/_import?overwrite=true" -H "kbn-xsrf: true" --form file=@/opt/so/conf/kibana/saved_objects.ndjson >> /opt/so/log/kibana/misc.log
{{ ELASTICCURL }} -L -X POST "localhost:5601/api/saved_objects/_import?overwrite=true" -H "kbn-xsrf: true" --form file=@/opt/so/conf/kibana/saved_objects.ndjson >> /opt/so/log/kibana/misc.log

View File

@@ -1,7 +1,7 @@
beacons:
watch_sqlite_db:
- files:
/opt/so/conf/kratos/db/sqlite.db:
/opt/so/conf/kratos/db/db.sqlite:
mask:
- modify
- beacon_module: inotify