Parcourir la source

build: Ignore error from pkill on apt upgrade (fixes #7628) (#7629)

Simon Frei il y a 4 ans
Parent
commit
3967b39a17
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      script/deb-post-inst.template

+ 1 - 1
script/deb-post-inst.template

@@ -10,5 +10,5 @@ fi
 if [ $has_systemd -eq 0 ] && [ -n "$(systemctl list-units --plain --no-legend {{.Service}})" ]; then
     deb-systemd-invoke try-restart "{{.Service}}"
 else
-    pkill -HUP -x {{.Command}}
+    pkill -HUP -x {{.Command}} || :
 fi