From bc94c36cfc93b000cf2092d6851cf37db4b3d02a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 14 Apr 2019 22:46:11 -0400 Subject: [PATCH] formatting --- util/MsSql/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/MsSql/entrypoint.sh b/util/MsSql/entrypoint.sh index e2e1c5cc2c..f1557cf562 100644 --- a/util/MsSql/entrypoint.sh +++ b/util/MsSql/entrypoint.sh @@ -29,11 +29,13 @@ mkhomedir_helper $USERNAME # Read the SA_PASSWORD value from a file for swarm environments. # See https://github.com/Microsoft/mssql-docker/issues/326 -if [ ! -z "$SA_PASSWORD" ] && [ ! -z "$SA_PASSWORD_FILE" ]; then +if [ ! -z "$SA_PASSWORD" ] && [ ! -z "$SA_PASSWORD_FILE" ] +then echo "Provided both SA_PASSWORD and SA_PASSWORD_FILE environment variables. Please only use one." exit 1 fi -if [ ! -z "$SA_PASSWORD_FILE" ]; then +if [ ! -z "$SA_PASSWORD_FILE" ] +then # It should be exported, so it is available to the env command below. export SA_PASSWORD=$(cat $SA_PASSWORD_FILE) fi