Skip to content

Commit 42083b7

Browse files
Adds doc website link in the message printed for custom admin password requirement (#4397)
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent 8fb53d1 commit 42083b7

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

docker/release/config/opensearch/opensearch-docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function setupSecurityPlugin {
3434
if [ "$DISABLE_INSTALL_DEMO_CONFIG" = "true" ]; then
3535
echo "Disabling execution of install_demo_configuration.sh for OpenSearch Security Plugin"
3636
else
37-
echo -e "Enabling execution of install_demo_configuration.sh for OpenSearch Security Plugin \nOpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user. \nPlease define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string. \nIf a password is not provided, the setup will quit."
37+
echo -e "Enabling execution of install_demo_configuration.sh for OpenSearch Security Plugin \nOpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user. \nPlease define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string. \nIf a password is not provided, the setup will quit. \n For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/"
3838
bash $OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN/tools/install_demo_configuration.sh -y -i -s || exit 1
3939
fi
4040

scripts/pkg/build_templates/opensearch/deb/debian/preinst

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ MINIMUM_OF_TWO_VERSIONS=`echo $OPENSEARCH_REQUIRED_VERSION $OPENSEARCH_VERSION |
4343
if [ $OPENSEARCH_ALREADY_INSTALLED = no ]; then
4444
if [ $MINIMUM_OF_TWO_VERSIONS = $OPENSEARCH_REQUIRED_VERSION ] && [ -z "$OPENSEARCH_INITIAL_ADMIN_PASSWORD" ]; then
4545
echo "ERROR: Opensearch 2.12 and later requires the env variable OPENSEARCH_INITIAL_ADMIN_PASSWORD to be defined to setup the opensearch-security demo configuration"
46+
echo "For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/debian/"
4647
exit 1
4748
fi
4849
fi

scripts/pkg/build_templates/opensearch/rpm/opensearch.rpm.spec

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ MINIMUM_OF_TWO_VERSIONS=`echo $OPENSEARCH_REQUIRED_VERSION $OPENSEARCH_VERSION |
109109
if [ $OPENSEARCH_ALREADY_INSTALLED = no ]; then
110110
if [ $MINIMUM_OF_TWO_VERSIONS = $OPENSEARCH_REQUIRED_VERSION ] && [ -z "$OPENSEARCH_INITIAL_ADMIN_PASSWORD" ]; then
111111
echo "ERROR: Opensearch 2.12 and later requires the env variable OPENSEARCH_INITIAL_ADMIN_PASSWORD to be defined to setup the opensearch-security demo configuration"
112+
echo "For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/rpm/"
112113
exit 1
113114
fi
114115
fi

scripts/startup/tar/linux/opensearch-tar-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd $OPENSEARCH_HOME
1010
KNN_LIB_DIR=$OPENSEARCH_HOME/plugins/opensearch-knn/lib
1111
##Security Plugin
1212
if [ -d "$OPENSEARCH_HOME/plugins/opensearch-security" ]; then
13-
echo -e "OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin introduces a change that requires an initial password for 'admin' user. \nPlease define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string. \nIf a password is not provided, the setup will quit."
13+
echo -e "OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin introduces a change that requires an initial password for 'admin' user. \nPlease define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string. \nIf a password is not provided, the setup will quit. \nFor more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/tar/"
1414
bash $OPENSEARCH_HOME/plugins/opensearch-security/tools/install_demo_configuration.sh -y -i -s || exit 1
1515
echo "done security"
1616
fi

scripts/startup/zip/windows/opensearch-windows-install.bat

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ IF EXIST "%OPENSEARCH_HOME%\plugins\opensearch-security" (
1818
ECHO "OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user."
1919
ECHO "Please define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string."
2020
ECHO "If a password is not provided, the setup will quit."
21+
ECHO "For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/windows/"
2122
CALL "%OPENSEARCH_HOME%\plugins\opensearch-security\tools\install_demo_configuration.bat" -y -i -s || exit /b 1
2223
)
2324

0 commit comments

Comments
 (0)