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 <jvalleroy@mailbox.org>
[sunil: Split the update command into ExecStartPre= with return code ignored]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2020-07-12 20:39:34 -07:00
1 parent 5e6a661648
commit 172ffe106b
1 file changed
+1
@@ -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