diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-31 16:55:57 -0200 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-31 16:55:57 -0200 | 
| commit | 654d21bd283a3741d445912dc083c7a41e53c6ac (patch) | |
| tree | cb4096cb175938e3e868a23669eba58eb46338ed | |
| parent | 8e54d5e1cca3985b612c6428e007f75718291542 (diff) | |
| download | kvmx-654d21bd283a3741d445912dc083c7a41e53c6ac.tar.gz kvmx-654d21bd283a3741d445912dc083c7a41e53c6ac.tar.bz2 | |
Fix params at kvmx_supervise_call
| -rwxr-xr-x | kvmx-supervise | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/kvmx-supervise b/kvmx-supervise index 433ac56..cf25e48 100755 --- a/kvmx-supervise +++ b/kvmx-supervise @@ -67,6 +67,7 @@ function kvmx_supervise_usage {  function kvmx_supervise_call {    local user="$1"    local vm="$2" +  local params=($*)    shift 2    # Check parameters @@ -87,7 +88,8 @@ function kvmx_supervise_call {    # Dispatch    if [ "$supervise_manage" == "1" ]; then -    su $user -s /bin/bash -c "kvmx $vm $*" + +    su $user -s /bin/bash -c "kvmx ${params[0]} $vm ${params[@]:1}"    fi  } | 
