- Fix docker_mk_env config sed generation.
This commit is contained in:
parent
7a4ee6f87f
commit
ae36bab6ec
@ -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
|
Rx3-Docker/Docker Tools V 1.3.1 - A. GIBERT - 2024/12/14
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -377,10 +377,12 @@ 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
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
@ -394,9 +396,6 @@ do
|
|||||||
config_file_source="$2"
|
config_file_source="$2"
|
||||||
IFS=" "
|
IFS=" "
|
||||||
|
|
||||||
|
|
||||||
while read line
|
sed <${config_file_source} >${config_file_target} -f ${APPL_HOME_DIR}/.env.sed
|
||||||
do
|
|
||||||
eval echo $(echo ${line} | sed -e 's/"/\\"/g' -e 's/</\\</g' -e 's/>/\\>/g';)
|
|
||||||
done <${config_file_source} >${config_file_target}
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user