mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
10617b900e
commit
2d1ced84cd
4 files changed
+17
-2
No files matched your search
@@ -1,2 +1,5 @@
|
||||
# Automatically restart services when needed.
|
||||
$nrconf{restart} = 'a';
|
||||
|
||||
# Don't restart freedombox-manual-upgrade.service.
|
||||
$nrconf{override_rc}->{qr(^freedombox-manual-upgrade\.service$)} = 0;
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Run unattended-upgrade once
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=unattended-upgrade --verbose
|
||||
KillMode=process
|
||||
TimeoutStopSec=900
|
||||
Reference in new issue
Block a user