Commit d48215da authored by ismail's avatar ismail

entrypoint updated to handle already set config file

Signed-off-by: default avatarismail <mohammed.ismail@openairinterface.org>
parent ef296177
......@@ -20,6 +20,10 @@ HTTP_VERSION=${HTTP_VERSION:-1}
for c in ${CONFIG_DIR}/*.conf; do
# 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)
echo "Now setting these variables '${VARS}'"
......
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