gitweb: Run git commands as a web user

Fixes #2306.

Tested that all the gitweb tests pass in Debian stable and testing
containers.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa authored and Sunil Mohan Adapa committed 2022-12-29 15:20:38 -08:00
1 parent d3d7e233e3
commit b94e1ea596
4 files changed
+14 -9

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ from django.utils.translation import gettext_lazy as _
CONFIG_FILE = '/etc/gitweb-freedombox.conf'
GIT_REPO_PATH = '/var/lib/git'
REPO_DIR_OWNER = 'www-data'
clients = [
{