Sunil Mohan Adapa 1398501ec4
gitweb: Don't backup/restore a drop-in configuration file
- /etc/gitweb-freedombox.conf is a drop-in configuration file. It is provide in
/usr and linked into /etc/. It is overwritten when freedombox package is
upgraded. So, it is incorrect to backup/restore the file.

Tests:

- Run functional tests that include backup/restore.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-07-31 13:32:42 +03:00

36 lines
826 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
from django.utils.translation import gettext_lazy as _
GIT_REPO_PATH = '/var/lib/git'
REPO_DIR_OWNER = 'www-data'
clients = [
{
'name': _('Gitweb'),
'platforms': [{
'type': 'web',
'url': '/gitweb/'
}]
},
{
'name':
_('Git'),
'platforms': [{
'type': 'download',
'os': 'gnu-linux',
'url': 'https://git-scm.com/download/linux'
}, {
'type': 'download',
'os': 'macos',
'url': 'https://git-scm.com/download/mac'
}, {
'type': 'download',
'os': 'windows',
'url': 'https://git-scm.com/download/windows'
}]
},
]
backup = {'data': {'directories': [GIT_REPO_PATH]}}