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:
parent
7faa707d26
commit
bba78d224b
@ -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; } ;"
|
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
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user