METRON-1411 Fix sed command in Upgrading.md (justinleet) closes apache/metron#900
Project: http://git-wip-us.apache.org/repos/asf/metron/repo Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/0cd4a830 Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/0cd4a830 Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/0cd4a830 Branch: refs/heads/feature/METRON-1211-extensions-parsers-gradual Commit: 0cd4a8300dc56e97bfa1adb6c68a7e1585c7ccea Parents: 0df6678 Author: justinleet <justinjl...@gmail.com> Authored: Fri Jan 19 11:24:30 2018 -0500 Committer: leet <l...@apache.org> Committed: Fri Jan 19 11:24:30 2018 -0500 ---------------------------------------------------------------------- Upgrading.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/metron/blob/0cd4a830/Upgrading.md ---------------------------------------------------------------------- diff --git a/Upgrading.md b/Upgrading.md index 66bba0c..047b68e 100644 --- a/Upgrading.md +++ b/Upgrading.md @@ -46,8 +46,8 @@ First is to update the Elasticsearch template for each sensor, so any new indice export ELASTICSEARCH="node1" export SENSOR="bro" curl -XGET "http://${ELASTICSEARCH}:9200/_template/${SENSOR}_index*?pretty=true" -o "${SENSOR}.template" -sed -i '' '2d;$d' ./${SENSOR}.template -sed -i '' '/"properties" : {/ a\ +sed -i '2d;$d' ./${SENSOR}.template +sed -i '/"properties" : {/ a\ "alert": { "type": "nested"},' ${SENSOR}.template curl -XPUT "http://${ELASTICSEARCH}:9200/_template/${SENSOR}_index" -d @${SENSOR}.template ```