Skip to content
Snippets Groups Projects
Commit e4f07e3b authored by Gilles Filippini's avatar Gilles Filippini
Browse files

[fix] docker: entrypoint - backup conf.json

When `/etc/duniter` is not mounted as a persistent volume, the
configuration file is lost after re-creating the instance.

To prevent this, before transitionning the configuration file from
volume '/var/lib/duniter' to volume '/etc/duniter', the entrypoint
backups it into '/var/lib/duniter'.  On restart, if the entrypoint
detects that the link to '/etc/duniter/conf.json' is dangling, it
prints a big fat warning into the logs and re-use the backuped
config file.
parent 6a73c975
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment