fix: Fix special char handling in pre-define env (#11799)
This commit is contained in:
parent
939e90626f
commit
e732190151
|
|
@ -27,8 +27,8 @@ init_env_file() {
|
|||
bash "$TEMPLATES_PATH/docker.env.sh" "$APPSMITH_MONGODB_USER" "$APPSMITH_MONGODB_PASSWORD" "$APPSMITH_ENCRYPTION_PASSWORD" "$APPSMITH_ENCRYPTION_SALT" > "$ENV_PATH"
|
||||
fi
|
||||
|
||||
printenv | grep -E '^APPSMITH_|^MONGO_' > "$TEMPLATES_PATH/pre-define.env"
|
||||
|
||||
# Build an env file with current env variables. We single-quote the values, as well as escaping any single-quote characters.
|
||||
printenv | grep -E '^APPSMITH_|^MONGO_' | sed "s/'/'\"'\"'/; s/=/='/; s/$/'/" > "$TEMPLATES_PATH/pre-define.env"
|
||||
|
||||
echo "Load environment configuration"
|
||||
set -o allexport
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user