Commit 806dbd73 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 ecb13e33
......@@ -23,6 +23,10 @@ fi
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