mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- /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>
36 lines
826 B
Python
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]}}
|