mirror of
https://github.com/bitwarden/server.git
synced 2025-04-09 07:08:15 -05:00
formatting
This commit is contained in:
parent
9ed52da2f5
commit
bc94c36cfc
@ -29,11 +29,13 @@ mkhomedir_helper $USERNAME
|
|||||||
|
|
||||||
# Read the SA_PASSWORD value from a file for swarm environments.
|
# Read the SA_PASSWORD value from a file for swarm environments.
|
||||||
# See https://github.com/Microsoft/mssql-docker/issues/326
|
# 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."
|
echo "Provided both SA_PASSWORD and SA_PASSWORD_FILE environment variables. Please only use one."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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.
|
# It should be exported, so it is available to the env command below.
|
||||||
export SA_PASSWORD=$(cat $SA_PASSWORD_FILE)
|
export SA_PASSWORD=$(cat $SA_PASSWORD_FILE)
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user