summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-09-09 18:01:23 +0200
committerJulian Andres Klode <jak@debian.org>2017-09-09 18:36:10 +0200
commit669e9a9a3d80d4e60b96d676d0dae8a0be8bd252 (patch)
tree26496f1b188b67a02be1154038b6487b27269f9d /debian
parent923522367a28be7235bf6459abfeae89fafffcf1 (diff)
apt-daily: Wait for network before daily updates
Introduce a new helper, apt-helper wait-online that uses NetworkManager and/or systemd-networkd to wait for them reporting online, with a time out of 30 seconds; and run that helper before running the daily update script. LP: #1699850 Gbp-Dch: Full
Diffstat (limited to 'debian')
-rw-r--r--debian/apt-daily.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/apt-daily.service b/debian/apt-daily.service
index 4a946afdd..d98f88ffe 100644
--- a/debian/apt-daily.service
+++ b/debian/apt-daily.service
@@ -5,5 +5,6 @@ ConditionACPower=true
[Service]
Type=oneshot
+ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily update