Commit c0b1d5b9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add get_vzlist.sh

parent debde0e6
#!/bin/sh
# Print out user's pub key
fatal()
{
echo "Error: $@" >&2
exit 1
}
[ "$UID" = 0 ] || fatal "Run me only as root"
HOST=$1
SUDO=
[ "$UID" = 0 ] || SUDO="sudo"
ssh root@$HOST $SUDO vzlist
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment