Container doesn't use new .env variables on restart
-
startup.sh
replaces placeholders (like__URL__
) inriesgos.cfg
- After that replacement, the placeholders are no longer present in
riesgos.cfg
- If a user changes env-variables like
OUTPUTURL
, after having run the container at least once, thenstartup.sh
should updateriesgos.cfg
... but can't, because the placeholders have already been removed. - As a consequence, a change in
.env
is not reflected in this container after restarting the container.
Better:
- Keep the placeholders in a file named
riesgos.cfg.template
- In startup.sh, copy that template file to
riesgos.cfg
- Do the replacement now
This way, riesgos.cfg.template
is usable on every boot.