- Fix docker_mk_env config sed generation.

This commit is contained in:
Arnaud G. GIBERT 2024-12-27 13:48:07 +01:00
parent 7a4ee6f87f
commit ae36bab6ec
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,11 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Docker Tools V 1.3.2 - A. GIBERT - 2024/12/27
------------------------------------------------------------------------------------------------------------------------------------
- Add docker_config_add function for docker_mk_env to support config file generation.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Docker Tools V 1.3.1 - A. GIBERT - 2024/12/14
------------------------------------------------------------------------------------------------------------------------------------

View File

@ -377,10 +377,12 @@ 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 "${var}='${!var}'" >>${APPL_HOME_DIR}/.env
echo "s/\${${var}}/${!var//\//\\/}/g" >>${APPL_HOME_DIR}/.env.sed
done
@ -394,9 +396,6 @@ do
config_file_source="$2"
IFS=" "
while read line
do
eval echo $(echo ${line} | sed -e 's/"/\\"/g' -e 's/</\\</g' -e 's/>/\\>/g';)
done <${config_file_source} >${config_file_target}
sed <${config_file_source} >${config_file_target} -f ${APPL_HOME_DIR}/.env.sed
done