x_old_misp_docker icon indicating copy to clipboard operation
x_old_misp_docker copied to clipboard

firstboot runs everytime

Open bonovoxly opened this issue 5 years ago • 1 comments

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.

bonovoxly avatar Jan 29 '20 11:01 bonovoxly

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.

legoguy1000 avatar Feb 01 '20 16:02 legoguy1000