Skip to content

Commit d37a264

Browse files
authored
Merge pull request #41 from magenx/dev
Update opensearch.sh
2 parents 9cdabab + 4fc3968 commit d37a264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opensearch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
. .env
3-
doco exec -it opensearch curl -XPUT -u admin:${OPENSEARCH_PASSWORD} "opensearch:9200/_plugins/_security/api/roles/indexer_${BRAND}" -H "Content-Type: application/json" -d "$(cat <<EOF
3+
docker compose exec -it opensearch curl -XPUT -u admin:${OPENSEARCH_PASSWORD} "opensearch:9200/_plugins/_security/api/roles/indexer_${BRAND}" -H "Content-Type: application/json" -d "$(cat <<EOF
44
{
55
"cluster_permissions": [
66
"cluster_composite_ops_monitor",
@@ -31,7 +31,7 @@ EOF
3131
3232
)"
3333

34-
doco exec -it opensearch curl -XPUT admin:${OPENSEARCH_PASSWORD} -XPUT "http://opensearch:9200/_plugins/_security/api/internalusers/indexer_${BRAND}" \
34+
docker compose exec -it opensearch curl -XPUT -u admin:${OPENSEARCH_PASSWORD} -XPUT "http://opensearch:9200/_plugins/_security/api/internalusers/indexer_${BRAND}" \
3535
-H "Content-Type: application/json" \
3636
-d "$(cat <<EOF
3737
{

0 commit comments

Comments
 (0)