- Remove .env.sed file obsoleted by ENV_SED environment variable.
This commit is contained in:
parent
7278a536fd
commit
69b26b35bf
@ -1,11 +1,13 @@
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
Rx3-Docker/Docker Tools V 1.3.3 - A. GIBERT - 2025/01/04
|
||||
Rx3-Docker/Docker Tools V 1.3.3 - A. GIBERT - 2025/01/05
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Add DOCKER_TOOLS_EXEPTION_LOGS env variable support.
|
||||
- Add DOCKER_TOOLS_EXEPTION_LOGS env variable support,
|
||||
- Remove .env.sed file obsoleted by ENV_SED environment variable.
|
||||
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
Rx3-Docker/Docker Tools V 1.3.2 - A. GIBERT - 2024/12/27
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -415,14 +415,16 @@ fi
|
||||
|
||||
|
||||
>${APPL_HOME_DIR}/.env
|
||||
>${APPL_HOME_DIR}/.env.sed
|
||||
|
||||
for var in $( ( grep "^ *[a-zA-Z0-9_-]*=" ${APPL_HOME_DIR}/env | sed -e "s/=.*//" -e "s/ *//"; echo ${DYNVAR_LIST} | sed -e 's/ /\n/g') | sort -u)
|
||||
do
|
||||
echo "${var}='${!var}'" >>${APPL_HOME_DIR}/.env
|
||||
echo "s/\${${var}}/${!var//\//\\/}/g" >>${APPL_HOME_DIR}/.env.sed
|
||||
ENV_SED="${ENV_SED}s/\${${var}}/${!var//\//\\/}/g
|
||||
"
|
||||
done
|
||||
|
||||
echo ENV_SED=\'"${ENV_SED}"\' >>${APPL_HOME_DIR}/.env
|
||||
|
||||
|
||||
|
||||
for tupple in ${CONFIG_FILE_LIST}
|
||||
@ -435,5 +437,5 @@ do
|
||||
IFS=" "
|
||||
|
||||
|
||||
sed <${config_file_source} >${config_file_target} -f ${APPL_HOME_DIR}/.env.sed
|
||||
sed <${config_file_source} >${config_file_target} -e "${ENV_SED}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user