]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Console: use script hack, useful for servers
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 18:49:15 +0000 (15:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 18:49:15 +0000 (15:49 -0300)
kvmx

diff --git a/kvmx b/kvmx
index abe063a63abc3658bc22546d83673ea5dd2875f9..9c045658d7e2615c22abe56c12483fc4b9cf0c76 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -1665,7 +1665,10 @@ function kvmx_console {
     exit 1
   fi
 
-  screen -x kvmx-$VM
+  # See https://serverfault.com/questions/116775/sudo-as-different-user-and-running-screen
+  #script /dev/null
+  #screen -x kvmx-$VM
+  script -q -c "screen -x kvmx-$VM" /dev/null
 }
 
 # Alias to console