v28.2.0-3
- gitea-container shim and sudoers: exec the image's /usr/local/bin/gitea wrapper instead of /app/gitea/gitea, so /etc/gitea/app.ini is used without --config - README: document why the shim must use the image wrapper
This commit is contained in:
1 parent
e3ce16ffa3
commit
c0c714e6b9
4 files changed
+15
-3
No files matched your search
@@ -323,6 +323,13 @@ SSH passthrough for containers uses a shim script:
|
||||
- `/usr/libexec/gitea-keys` - calls `podman exec` into the container
|
||||
- `/usr/libexec/gitea-container` - shim so `gitea` CLI commands work from host
|
||||
|
||||
The shim must exec the image's `/usr/local/bin/gitea` wrapper, not the raw
|
||||
`/app/gitea/gitea` binary. The wrapper adds `-c $GITEA_APP_INI`
|
||||
(`/etc/gitea/app.ini`) unless `-c`/`--config` is given; the raw binary ignores
|
||||
`GITEA_APP_INI` and fails with "Unable to load config file for a installed
|
||||
Gitea instance". `/etc/sudoers.d/gitea` allows only that exact command path,
|
||||
so keep both in sync.
|
||||
|
||||
```
|
||||
# /etc/ssh/sshd_config.d/50-gitea.conf (container variant)
|
||||
Match User git
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec sudo /usr/bin/podman exec -i gitea /app/gitea/gitea "$@"
|
||||
exec sudo /usr/bin/podman exec -i gitea /usr/local/bin/gitea "$@"
|
||||
+1
-1
@@ -1 +1 @@
|
||||
git ALL=(root) NOPASSWD: /usr/bin/podman exec -i gitea /app/gitea/gitea *
|
||||
git ALL=(root) NOPASSWD: /usr/bin/podman exec -i gitea /usr/local/bin/gitea *
|
||||
+6
-1
@@ -1,6 +1,6 @@
|
||||
Name: gitea
|
||||
Version: 28.2.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Gitea - Git with a cup of tea
|
||||
License: MIT
|
||||
Group: System Environment/Base
|
||||
@@ -214,6 +214,11 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/containers/systemd/gitea-db.container.d/credentials.conf
|
||||
|
||||
%changelog
|
||||
* Sat Oct 31 2026 Zoran Pericic <zpericic@netst.org> - 28.2.0-3
|
||||
- gitea-container shim and sudoers: exec the image's /usr/local/bin/gitea
|
||||
wrapper instead of /app/gitea/gitea, so /etc/gitea/app.ini is used without
|
||||
--config
|
||||
|
||||
* Thu Oct 29 2026 Zoran Pericic <zpericic@netst.org> - 28.2.0-2
|
||||
- Add Ulimit=nofile=65536:65536 to gitea.container
|
||||
- Ship gitea.service.d/database.conf dependency template in /etc/systemd/system
|
||||
|
||||
Reference in new issue
Block a user