aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 15:49:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 15:49:15 -0300
commita786c92524773c33c514db20ae0f2d91d4d0f5cf (patch)
tree667f41d767adf1db80991c07ad596768e0323c01
parent960886175aad9d9cb9352a23edd36b4db786cf6b (diff)
downloadkvmx-a786c92524773c33c514db20ae0f2d91d4d0f5cf.tar.gz
kvmx-a786c92524773c33c514db20ae0f2d91d4d0f5cf.tar.bz2
Console: use script hack, useful for servers
-rwxr-xr-xkvmx5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index abe063a..9c04565 100755
--- 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