Skip to content

Commit 69c3bf5

Browse files
committed
Add -y to demo
Signed-off-by: Derek Ho <[email protected]>
1 parent 585fd0e commit 69c3bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ runs:
130130
opensearch_minor_version=$(echo "$opensearch_version" | cut -d'.' -f2)
131131
if [ "$opensearch_major_version" -lt 2 ] || ([ "$opensearch_major_version" -eq 2 ] && [ "$opensearch_minor_version" -lt 12 ]); then
132132
echo "Running the command without -t option (OpenSearch version is $opensearch_version)"
133-
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat"
133+
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat -y"
134134
else
135135
echo "Running the command with -t option (OpenSearch version is $opensearch_version)"
136-
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat -t"
136+
/bin/bash -c "yes | ./opensearch-${opensearch_version}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat -t -y"
137137
fi
138138
echo "plugins.security.unsupported.restapi.allow_securityconfig_modification: true" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
139139
shell: bash

0 commit comments

Comments
 (0)