Open
Description
- Gitea version (or commit ref): 1.2.0
Using the FreeBSD port for Gitea on FreeBSD 11.1.
Description
After upgrading to Gitea 1.2, Gitea won't start if the config file cannot be written by the user Gitea is running under:
[...s/setting/setting.go:859 NewContext()] [E] Error saving generated JWT Secret to custom config: open /usr/local/etc/gitea/conf/app.ini: permission denied
This is due to the security/INTERNAL_TOKEN option not being set, and Gitea being unable to add it to the config itself.
Start scripts should be able to verify the configuration and print appropriate error messages, before trying to start Gitea as a daemon.