Wrong ownership of forgejo service user's mount points #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Directories in the service user's home dir (gitea, conf, custom, etc.) end up being owned by
user:rootinstead ofuser:user.I suspect that there's something not quite right when running
ensure_dirsbecause the call to thefile.directoryoperation is specifying the user but not the group and one has to run that deployment with---sudo.The result is, that forgejo deployment can't succeed the first time, b/c these are dirs to be mounted under /var/lib/gitea within the container, but the messed up ownership prevents this with a - from "naive" user's POV not very enlightening - OCI permission error on
/var/lib/gitea/confetc.Logging in after a first run of that deployment and running
chown -R <user>:<user> <userhome>fixes it and a second run then completes the deployment.