Add 'usr/local/bin/virsh'
This commit is contained in:
16
usr/local/bin/virsh
Normal file
16
usr/local/bin/virsh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
|
|
||||||
|
INTERACTIVE=${INTERACTIVE:-false}
|
||||||
|
PARAMETERS=${PARAMETERS:-}
|
||||||
|
|
||||||
|
if [[ -t 0 ]]; then
|
||||||
|
INTERACTIVE=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $INTERACTIVE == "true" ]]; then
|
||||||
|
PARAMETERS="$PARAMETERS -it"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec $PARAMETERS nova_libvirt virsh "$@"
|
||||||
Reference in New Issue
Block a user