From f4af5f320a30832dc8f289e296b9522799407e28 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sat, 14 Jan 2017 13:11:27 +0000 Subject: [PATCH] Shut down after update only if it's a template. As per discussion in https://github.com/QubesOS/qubes-issues/issues/2555#issuecomment-271415169 Signed-off-by: Lorenzo --- qubes-rpc/qubes.InstallUpdatesGUI | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.InstallUpdatesGUI b/qubes-rpc/qubes.InstallUpdatesGUI index 5e4c920..c9818c7 100755 --- a/qubes-rpc/qubes.InstallUpdatesGUI +++ b/qubes-rpc/qubes.InstallUpdatesGUI @@ -17,7 +17,7 @@ elif [ -e /etc/arch-release ]; then else update_cmd='echo Unsupported distribution, install updates manually; bash -i' fi -xterm -title update -e su -l -c "$update_cmd; echo Done.; echo Press Enter to shutdown the template, or Ctrl-C to just close this window; read x && poweroff;" +xterm -title update -e su -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 -c 'service qubes-update-check start'