Add auditor role; update analyst role with correct syntax

This commit is contained in:
Jason Ertel
2021-09-03 15:54:05 -04:00
parent 649f339934
commit fbbb7f4e85
2 changed files with 58 additions and 41 deletions

View File

@@ -51,7 +51,7 @@ cd ${ELASTICSEARCH_ROLES}
echo "Loading templates..."
for role in *; do
name=$(echo "$role" | cut -d. -f1)
so-elasticsearch-query security/roles/$name -XPUT -d @"$role"
so-elasticsearch-query _security/role/$name -XPUT -d @"$role"
done
cd - >/dev/null