Commit d0a4126f authored by Mohammed Ismail's avatar Mohammed Ismail

entrypoint updated to handle already set config file

Signed-off-by: default avatarMohammed Ismail <mohammed.ismail@openairinterface.org>
parent 02272eef
...@@ -17,6 +17,10 @@ fi ...@@ -17,6 +17,10 @@ fi
for c in ${CONFIG_DIR}/*.conf; do for c in ${CONFIG_DIR}/*.conf; do
# grep variable names (format: ${VAR}) from template to be rendered # grep variable names (format: ${VAR}) from template to be rendered
if ! grep -oP '@[a-zA-Z0-9_]+@' ${c}; then
echo "Configuration is already set"
exec "$@"
fi
VARS=$(grep -oP '@[a-zA-Z0-9_]+@' ${c} | sort | uniq | xargs) VARS=$(grep -oP '@[a-zA-Z0-9_]+@' ${c} | sort | uniq | xargs)
# create sed expressions for substituting each occurrence of ${VAR} # create sed expressions for substituting each occurrence of ${VAR}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment