From 669e9a9a3d80d4e60b96d676d0dae8a0be8bd252 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 9 Sep 2017 18:01:23 +0200 Subject: 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 --- debian/apt-daily.service | 1 + 1 file changed, 1 insertion(+) (limited to 'debian/apt-daily.service') 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 -- cgit v1.2.3