- Remove .env.sed file obsoleted by ENV_SED environment variable.

This commit is contained in:
Arnaud G. GIBERT 2025-01-04 20:30:12 +01:00
parent 7278a536fd
commit 69b26b35bf
2 changed files with 9 additions and 5 deletions

View File

@ -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 Rx3-Docker/Docker Tools V 1.3.2 - A. GIBERT - 2024/12/27
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------

View File

@ -415,14 +415,16 @@ fi
>${APPL_HOME_DIR}/.env >${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) 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 do
echo "${var}='${!var}'" >>${APPL_HOME_DIR}/.env 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 done
echo ENV_SED=\'"${ENV_SED}"\' >>${APPL_HOME_DIR}/.env
for tupple in ${CONFIG_FILE_LIST} for tupple in ${CONFIG_FILE_LIST}
@ -435,5 +437,5 @@ do
IFS=" " 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 done