MISP / x_old_misp_docker

MISP Docker (XME edition)
283 stars 166 forks source link

firstboot runs everytime #78

Open bonovoxly opened 4 years ago

bonovoxly commented 4 years ago

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.

legoguy1000 commented 4 years ago

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.