From 172ffe106baadcba10dbf28b21c367b13b58679b Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 1 Jul 2020 09:06:18 -0400 Subject: [PATCH] upgrades: Update apt cache before manual update Test: - Run manual update. `journalctl -u freedombox-manual-upgrade` shows that apt cache was updated. Closes: #1708. Signed-off-by: James Valleroy [sunil: Split the update command into ExecStartPre= with return code ignored] Signed-off-by: Sunil Mohan Adapa --- .../data/lib/systemd/system/freedombox-manual-upgrade.service | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/upgrades/data/lib/systemd/system/freedombox-manual-upgrade.service b/plinth/modules/upgrades/data/lib/systemd/system/freedombox-manual-upgrade.service index 862db4196..c0f80714c 100644 --- a/plinth/modules/upgrades/data/lib/systemd/system/freedombox-manual-upgrade.service +++ b/plinth/modules/upgrades/data/lib/systemd/system/freedombox-manual-upgrade.service @@ -3,6 +3,7 @@ Description=Run unattended-upgrade once [Service] Type=oneshot +ExecStartPre=-apt-get update --assume-yes --quiet ExecStart=unattended-upgrade --verbose KillMode=process TimeoutStopSec=900