install 427 Bytes
Newer Older
1 2
#!/bin/sh

Nótai István committed
3
if [ $(id -u) -ne 0 ]; then
4 5 6 7 8 9 10 11 12 13 14
    RED_UNDERLINED='\033[4;31m'
    NC='\033[0m'  # No Color
    echo -e $RED_UNDERLINED"Please run as root or use sudo!"$NC
    exit
fi

FULLPATH=$(readlink -m $0)
PREFIX=$(dirname $FULLPATH)

pip install -r $PREFIX/requirements.txt

15 16 17
$PREFIX/kvm-ok > /dev/null
retv=$?
EXTRAPARAMS=""
Nótai István committed
18
if [ $retv -eq 0 ]; then
19 20 21
    EXTRAPARAMS="--kvm-present"
fi

22
python $PREFIX/install.py $EXTRAPARAMS $@