change config id

This commit is contained in:
m0duspwnens
2021-11-09 12:13:28 -05:00
parent 36cb0d6c42
commit da4e92a7a3
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ update() {
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "{{ ELASTICCURL }}"
IFS=$'\r\n' GLOBIGNORE='*' command eval 'LINES=($(cat $1))'
for i in "${LINES[@]}"; do
{{ ELASTICCURL }} -X PUT "localhost:5601/api/saved_objects/config/7.13.4" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d " $i "
{{ ELASTICCURL }} -X PUT "localhost:5601/api/saved_objects/config/7.15.1" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d " $i "
done
}