From 9f2220b36b1a9fa27a90501b647618de9ac9697b Mon Sep 17 00:00:00 2001 From: bnrstnr Date: Tue, 12 Jun 2018 13:50:14 -0400 Subject: [PATCH 1/2] Update xo_install.sh --- xo_install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xo_install.sh b/xo_install.sh index 5408d5f..a275446 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -3,6 +3,12 @@ # Check if we were effectively run as root [ $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_server="https://github.com/vatesfr/xen-orchestra" n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n" From 23306312bdb4c7db17ce8da29d22465f5c1b2603 Mon Sep 17 00:00:00 2001 From: bnrstnr Date: Tue, 12 Jun 2018 14:08:45 -0400 Subject: [PATCH 2/2] Update xo_install.sh --- xo_install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xo_install.sh b/xo_install.sh index a275446..1b56ba0 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -5,9 +5,7 @@ #Check for 1GB Memory totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo) -if [ $totalk < "1000000" ]; then -echo "XOCE Requires at least 1GB Memory!" -fi +if [ "$totalk" -lt "1000000" ]; then echo "XOCE Requires at least 1GB Memory!"; exit 1; fi xo_branch="master" xo_server="https://github.com/vatesfr/xen-orchestra"