浏览代码

Do not (re)start "apt-daily.system"

This unit runs unattended-upgrades. If apt itself is part of the
upgrade a restart of the unit will kill unattended-upgrades. This
will lead to an inconsistent dpkg status.

Closes: #841763
Thanks: Alexandre Detiste
Michael Vogt 9 年之前
父节点
当前提交
e133bb5e81
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      debian/rules

+ 5 - 0
debian/rules

@@ -29,6 +29,11 @@ override_dh_gencontrol:
 override_dh_installcron:
 override_dh_installcron:
 	dh_installcron --name=apt-compat
 	dh_installcron --name=apt-compat
 
 
+override_dh_systemd_start:
+	# Do not restart "apt-daily.service" because this script runs
+	# unattended-upgrades. So if apt itself is upgraded as part of
+	# an unattended-upgrades run it would kill itself
+	dh_systemd_start apt-daily.timer
 
 
 override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
 override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
 override_dh_auto_configure-indep: flags=-DWITH_DOC=ON
 override_dh_auto_configure-indep: flags=-DWITH_DOC=ON