mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
upgrades: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - Running 'apt update' sends a DBus signal to freedombox service - unattended-upgrade works - Many service were restart when unattended-upgrade was run Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
efe303de31
commit
4b5d1d3204
4
debian/freedombox.maintscript
vendored
4
debian/freedombox.maintscript
vendored
@ -139,3 +139,7 @@ rm_conffile /etc/apache2/includes/freedombox-single-sign-on.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/syncthing-plinth.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/transmission-plinth.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/tt-rss-plinth.conf 23.10~
|
||||
rm_conffile /etc/apt/apt.conf.d/20freedombox 23.10~
|
||||
rm_conffile /etc/apt/apt.conf.d/20freedombox-allow-release-info-change 23.10~
|
||||
rm_conffile /etc/apt/apt.conf.d/60unattended-upgrades 23.10~
|
||||
rm_conffile /etc/needrestart/conf.d/freedombox.conf 23.10~
|
||||
|
||||
@ -12,6 +12,7 @@ from django.utils.translation import gettext_noop
|
||||
import plinth
|
||||
from plinth import app as app_module
|
||||
from plinth import cfg, glib, kvstore, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import RelatedDaemon
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.package import Packages
|
||||
@ -52,7 +53,7 @@ class UpgradesApp(app_module.App):
|
||||
|
||||
app_id = 'upgrades'
|
||||
|
||||
_version = 15
|
||||
_version = 16
|
||||
|
||||
can_be_disabled = False
|
||||
|
||||
@ -74,6 +75,14 @@ class UpgradesApp(app_module.App):
|
||||
['unattended-upgrades', 'needrestart'])
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs('dropin-configs-upgrades', [
|
||||
'/etc/apt/apt.conf.d/20freedombox',
|
||||
'/etc/apt/apt.conf.d/20freedombox-allow-release-info-change',
|
||||
'/etc/apt/apt.conf.d/60unattended-upgrades',
|
||||
'/etc/needrestart/conf.d/freedombox.conf',
|
||||
])
|
||||
self.add(dropin_configs)
|
||||
|
||||
daemon = RelatedDaemon('related-daemon-upgrades',
|
||||
'freedombox-dist-upgrade')
|
||||
self.add(daemon)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user