From 1398501ec466ae61dfe89e75ef96bf68bd004343 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 5 May 2024 09:38:31 -0700 Subject: [PATCH] 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 Reviewed-by: Veiko Aasa --- plinth/modules/gitweb/manifest.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plinth/modules/gitweb/manifest.py b/plinth/modules/gitweb/manifest.py index cb83f8353..ad2f8e782 100644 --- a/plinth/modules/gitweb/manifest.py +++ b/plinth/modules/gitweb/manifest.py @@ -2,7 +2,6 @@ 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' @@ -33,11 +32,4 @@ clients = [ }, ] -backup = { - 'config': { - 'files': [CONFIG_FILE] - }, - 'data': { - 'directories': [GIT_REPO_PATH] - } -} +backup = {'data': {'directories': [GIT_REPO_PATH]}}