diff --git a/plinth/modules/upgrades/__init__.py b/plinth/modules/upgrades/__init__.py index 8016d3f36..a70038037 100644 --- a/plinth/modules/upgrades/__init__.py +++ b/plinth/modules/upgrades/__init__.py @@ -17,7 +17,7 @@ version = 3 is_essential = True -managed_packages = ['unattended-upgrades'] +managed_packages = ['unattended-upgrades', 'needrestart'] _description = [ _('Check for and apply the latest software and security updates.') diff --git a/plinth/modules/upgrades/data/etc/needrestart/conf.d/freedombox.conf b/plinth/modules/upgrades/data/etc/needrestart/conf.d/freedombox.conf new file mode 100644 index 000000000..a1853d350 --- /dev/null +++ b/plinth/modules/upgrades/data/etc/needrestart/conf.d/freedombox.conf @@ -0,0 +1,2 @@ +# Automatically restart services when needed. +$nrconf{restart} = 'a';