fix for ArchLinux: notify dom0 about installed updates

The launch of the qubes-update-check service failed on ArchLinux,
because the qubes-rpc uses the `service` command which isn't available
for this OS.
Šī revīzija ir iekļauta:
Ludovic Bellier 2020-12-01 22:10:11 +01:00
vecāks 7faa707d26
revīzija bba78d224b
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 552BC8B26E38D080

Parādīt failu

@ -20,4 +20,8 @@ fi
xterm -title update -e su -s /bin/sh -l -c "$update_cmd; echo Done.; test -f /var/run/qubes/this-is-templatevm && { echo Press Enter to shutdown the template, or Ctrl-C to just close this window; read x && poweroff; } ;"
# Notify dom0 about installed updates
if [ -e /etc/arch-release ]; then
su -s /bin/sh -c 'systemctl start qubes-update-check'
else
su -s /bin/sh -c 'service qubes-update-check start'
fi