From bba78d224bf7e3c16f038fce01a86d2e4b117db1 Mon Sep 17 00:00:00 2001 From: Ludovic Bellier Date: Tue, 1 Dec 2020 22:10:11 +0100 Subject: [PATCH] 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. --- qubes-rpc/qubes.InstallUpdatesGUI | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.InstallUpdatesGUI b/qubes-rpc/qubes.InstallUpdatesGUI index e01bace..952148b 100755 --- a/qubes-rpc/qubes.InstallUpdatesGUI +++ b/qubes-rpc/qubes.InstallUpdatesGUI @@ -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 -su -s /bin/sh -c 'service qubes-update-check start' +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