diff options
-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 } |