Skip to content

Commit

Permalink
use sudo -u root
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann authored Jun 24, 2018
1 parent 4aff1cb commit 16005e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qvm-expose-port
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function get_vm_ip() {
function vm() {
# shortcut for executing a command in a vm $VM_NAME
debug "Run in VM \"$VM_NAME\": $@"
echo "$@" | qvm-run --pass-io "$VM_NAME" 'sudo bash'
echo "$@" | qvm-run --pass-io "$VM_NAME" 'sudo -u root bash'
local exit_code="$?"
debug " The exit code is $exit_code."
return "$exit_code"
Expand Down

0 comments on commit 16005e7

Please sign in to comment.