Update xo_install.sh

This commit is contained in:
bnrstnr 2018-06-12 13:50:14 -04:00 committed by GitHub
parent 669c684732
commit 9f2220b36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,12 @@
# Check if we were effectively run as root # Check if we were effectively run as root
[ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; } [ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; }
#Check for 1GB Memory
totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo)
if [ $totalk < "1000000" ]; then
echo "XOCE Requires at least 1GB Memory!"
fi
xo_branch="master" xo_branch="master"
xo_server="https://github.com/vatesfr/xen-orchestra" xo_server="https://github.com/vatesfr/xen-orchestra"
n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n" n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n"