config file instead of config environment variable
jaydouble opened this issue · 2 comments
jaydouble commented
Hi,
I want to use this, but I need a couple of forwards. When I create a couple of forwards the config environment variable will become a long string, so it will become a potential failure.
Is it possible to create a config file, that will be the same a the config, but then newline separated?
So the script to load to config will be like:
if [ -z "$SMF_CONFIG" ]; then
SMF_CONFIG=$(cat /smf_config.txt | tr '\n' ';')
fi
that script is not tested, just a thinking around..
huan commented
Thanks for sharing!
It looks like it's a convenient way to load the config to the environment variable; if it works as expected, I'd like to accept a PR to add it to README as a recommended way to load the config from the file.