The only way I got this to work with a separate repository path was:
- edit /usr/lib/systemd/system/gitea.service
- edit and change to ReadWritePaths=/etc/gitea/app.ini /storage/gitea
- sudo systemctl reload-daemon; sudo systemctl restart gitea
- sudo chattr +i /usr/lib/systemd/system/gitea.service
Then it would work normally.
I tried the systemctl edit gitea, but it did no good.
I set the immutable flag on the systemd file so while it explodes during gitea upgrades, at least it won't silently change the file and silently break gitea.
Pinned Comments