Open pmeulen opened 1 year ago
nice, this will make the initial setup easier. We also need to update the README.md to reflect this?
Yes, I had held back this change because #5 modified the README as well. I've now rebased and updated the README with the new instructions.
As discussed in https://github.com/OpenConext/Stepup-Middleware/pull/410, running the console command as root is troublesome because it messes op the ownership of the Symfony cache. I've added chowns the the init script to fix that.
Another option would be to use sudo, but that would require adding the sudo package to the base container(s). That could be a better solution to cache ownership issue.
The script can be safely run multiple times, e.g. to upgrade the database schema for new versions, or to update the middleware configuration