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 2020-07-01 09:06:18 -04:00 committed by Sunil Mohan Adapa
parent 5e6a661648
commit 172ffe106b
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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