Browse Source

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.

Ludovic Bellier 3 years ago
parent
commit
bba78d224b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      qubes-rpc/qubes.InstallUpdatesGUI

+ 5 - 1
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