diff options
author | Julian Andres Klode <jak@debian.org> | 2017-09-09 18:26:44 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-09-13 18:46:06 +0200 |
commit | 06de2b51f2388d99f94cf1ead66070423192655b (patch) | |
tree | a6b6fae0d8fd4b72f2636b00f2e176c1953fe5d2 | |
parent | 0cd8081f55a958ef34b51855b16157412bc188a6 (diff) |
apt-daily: Pull in network-online.target in service, not timer
There's no real point in pulling it in in the timer already,
and it it somewhat saver to do so in the service.
(cherry picked from commit 11417c1058e1b8441ee8f30f948e854b7a6ce89e)
LP: #1716973
(cherry picked from commit 3e639687bbea08acd34f5a66dc99ea62848b7c17)
-rw-r--r-- | debian/apt-daily.service | 2 | ||||
-rw-r--r-- | debian/apt-daily.timer | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/apt-daily.service b/debian/apt-daily.service index 4a946afdd..09389c71b 100644 --- a/debian/apt-daily.service +++ b/debian/apt-daily.service @@ -2,6 +2,8 @@ Description=Daily apt download activities Documentation=man:apt(8) ConditionACPower=true +After=network-online.target +Wants=network-online.target [Service] Type=oneshot diff --git a/debian/apt-daily.timer b/debian/apt-daily.timer index 735da2440..3b5796217 100644 --- a/debian/apt-daily.timer +++ b/debian/apt-daily.timer @@ -1,7 +1,5 @@ [Unit] Description=Daily apt download activities -After=network-online.target -Wants=network-online.target [Timer] OnCalendar=*-*-* 6,18:00 |