Skip to content

Commit

Permalink
Tweak comments grammar
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Sep 10, 2021
1 parent d6db520 commit 474b3c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ SECURITY_DASHBOARDS_PLUGIN="securityDashboards"
if [ -d "$OPENSEARCH_DASHBOARDS_HOME/plugins/$SECURITY_DASHBOARDS_PLUGIN" ]; then

if [ "$DISABLE_SECURITY_DASHBOARDS_PLUGIN" = "true" ]; then
echo "Disable OpenSearch Security Dashboards Plugin"
echo "Disabling OpenSearch Security Dashboards Plugin"
./bin/opensearch-dashboards-plugin remove securityDashboards
sed -i /^opensearch_security/d $OPENSEARCH_DASHBOARDS_HOME/config/opensearch_dashboards.yml
sed -i 's/https/http/' $OPENSEARCH_DASHBOARDS_HOME/config/opensearch_dashboards.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ export OPENSEARCH_JAVA_OPTS="-Dopensearch.cgroups.hierarchy.override=/ $OPENSEAR
SECURITY_PLUGIN="opensearch-security"
if [ -d "$OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN" ]; then
if [ "$DISABLE_INSTALL_DEMO_CONFIG" = "true" ]; then
echo "Disable Install Demo Config for OpenSearch Security Plugin"
echo "Disabling Install Demo Config for OpenSearch Security Plugin"
else
echo "Enable Install Demo Config for OpenSearch Security Plugin"
echo "Enabling Install Demo Config for OpenSearch Security Plugin"
bash $OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN/tools/install_demo_configuration.sh -y -i -s
fi

if [ "$DISABLE_SECURITY_PLUGIN" = "true" ]; then
echo "Disable OpenSearch Security Plugin"
echo "Disabling OpenSearch Security Plugin"
sed -i '/plugins.security.disabled/d' $OPENSEARCH_HOME/config/opensearch.yml
echo "plugins.security.disabled: true" >> $OPENSEARCH_HOME/config/opensearch.yml
else
echo "Enable OpenSearch Security Plugin"
echo "Enabling OpenSearch Security Plugin"
sed -i '/plugins.security.disabled/d' $OPENSEARCH_HOME/config/opensearch.yml
fi
fi
Expand Down
8 changes: 4 additions & 4 deletions scripts/opensearch-onetime-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ OPENSEARCH_HOME=`dirname $(realpath $0)`; cd $OPENSEARCH_HOME
SECURITY_PLUGIN="opensearch-security"
if [ -d "$OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN" ]; then
if [ "$DISABLE_INSTALL_DEMO_CONFIG" = "true" ]; then
echo "Disable Install Demo Config for OpenSearch Security Plugin"
echo "Disabling Install Demo Config for OpenSearch Security Plugin"
else
echo "Enable Install Demo Config for OpenSearch Security Plugin"
echo "Enabling Install Demo Config for OpenSearch Security Plugin"
bash $OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN/tools/install_demo_configuration.sh -y -i -s
fi

if [ "$DISABLE_SECURITY_PLUGIN" = "true" ]; then
echo "Disable OpenSearch Security Plugin"
echo "Disabling OpenSearch Security Plugin"
sed -i '/plugins.security.disabled/d' $OPENSEARCH_HOME/config/opensearch.yml
echo "plugins.security.disabled: true" >> $OPENSEARCH_HOME/config/opensearch.yml
else
echo "Enable OpenSearch Security Plugin"
echo "Enabling OpenSearch Security Plugin"
sed -i '/plugins.security.disabled/d' $OPENSEARCH_HOME/config/opensearch.yml
fi
fi
Expand Down

0 comments on commit 474b3c1

Please sign in to comment.