diff --git a/xo_install.sh b/xo_install.sh index 5f85fea..faced6b 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -1,11 +1,5 @@ #!/bin/bash -#Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what -multiverse="http://archive.ubuntu.com/multiverse" -if ! grep -q "^deb .*$multiverse" /etc/apt/sources.list; -then -sudo add-apt-repository multiverse - # Check if we were effectively run as root [ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; } @@ -13,6 +7,12 @@ sudo add-apt-repository multiverse totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo) if [ "$totalk" -lt "1000000" ]; then echo "XOCE Requires at least 1GB Memory!"; exit 1; fi +# Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what +multiverse="http://archive.ubuntu.com/multiverse" +if ! grep -q "^deb .*$multiverse" /etc/apt/sources.list; +then +sudo add-apt-repository multiverse + xo_branch="master" xo_server="https://github.com/vatesfr/xen-orchestra" n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n"