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

This commit is contained in:
AlkorZ3 committed 2025-01-05 12:32:14 +01:00
1 parent 7278a536fd
commit 69b26b35bf
2 files changed
+9 -5

No files matched your search

+5 -3
View File
@@ -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