diff --git a/dom0/qvm-tools/qvm-dom0-upgrade b/dom0/qvm-tools/qvm-dom0-upgrade index 90fef29e..1fdb8e58 100755 --- a/dom0/qvm-tools/qvm-dom0-upgrade +++ b/dom0/qvm-tools/qvm-dom0-upgrade @@ -1,5 +1,13 @@ #!/bin/bash +ID=$(id -ur) + +if [ $ID != 0 ] ; then + echo "This script should be run as root, use sudo. " + exit 1 +fi + + UPDATEVM=`qvm-get-updatevm` if [ -z "$UPDATEVM" ]; then echo "UpdateVM not set, exiting"