x_old_misp_docker
x_old_misp_docker copied to clipboard
firstboot runs everytime
Because of this line: https://github.com/MISP/misp-docker/blob/master/web/run.sh#L137
First boot will run everytime.
Is this intended?
If it's not, could cook up a PR that simply checks for the presence of the .gnupg
folder to run firstboot.
The script checks if it can read /.firstboot.tmp, if it can then it runs the first boot setup process and when its done it deletes the file. If it restarts, that file won't exist and it won't run the setup. If the container is recreated, that is different and it will rerun.