Quellcode durchsuchen

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

Simon Frei vor 4 Jahren
Ursprung
Commit
f4e112f404
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
 if [ $has_systemd -eq 0 ] && [ -n "$(systemctl list-units --plain --no-legend {{.Service}})" ]; then
     deb-systemd-invoke try-restart "{{.Service}}"
     deb-systemd-invoke try-restart "{{.Service}}"
 else
 else
-    pkill -HUP -x {{.Command}}
+    pkill -HUP -x {{.Command}} || :
 fi
 fi