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.
This commit is contained in:
Ludovic Bellier 2020-12-01 22:10:11 +01:00
parent 7faa707d26
commit bba78d224b
No known key found for this signature in database
GPG Key ID: 552BC8B26E38D080

View File

@ -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