upgrades: Use a custom service for manual update

- Do not enable/start service during package install/upgrade
- Configure needrestart to skip restarting service

Closes: #1638.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Provide proper regex string in needrestart configuration with qr()]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2020-06-15 13:33:31 -07:00
1 parent 10617b900e
commit 2d1ced84cd
4 files changed
+17 -2

No files matched your search

+4
View File
@@ -14,3 +14,7 @@ override_dh_auto_install-indep:
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="{interpreter} setup.py test" dh_auto_test
override_dh_installsystemd:
# Do not enable or start freedombox-manual-upgrade.service.
dh_installsystemd --exclude=freedombox-manual-upgrade.service