4 Commits

Author SHA1 Message Date
Dustin B
90965ab4ec Update xo_install.sh
Cleanup and organization of code a bit.
2018-07-31 17:15:03 -04:00
Dustin B
7d9ec145f1 Update xo_install.sh 2018-07-31 17:05:32 -04:00
Dustin B
b3d41b6fb9 Fixes
Testing further
2018-07-31 17:05:03 -04:00
Dustin B
7f7195eadf Repo Check fo Multiverse 2018-07-31 16:56:01 -04:00
2 changed files with 6 additions and 24 deletions

View File

@@ -32,18 +32,3 @@ This will check and continually update the last 50 log files for your XOCE insta
journalctl -u xo-server -f -n 50
# Required Dependencies
Your system must be able to install the following list of dependencies, usually this is automatic but some distributions might not have the required repositories. Plese confirm you can install these before creating a ticket.
Check your distribution respositories list ie: ```/etc/apt/sources.list``` for multiverse.
* build-essential
* redis-server
* libpng-dev
* git
* python-minimal
* libvhdi-utils
* nfs-common
These dependencies (on Ubuntu) are available from the ```multiverse``` and ```universe``` repositories.

View File

@@ -7,8 +7,11 @@
totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo)
if [ "$totalk" -lt "1000000" ]; then echo "XOCE Requires at least 1GB Memory!"; exit 1; fi
distro=$(/usr/bin/lsb_release -is)
if [ "$distro" = "Ubuntu" ]; then /usr/bin/add-apt-repository multiverse; 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"
@@ -39,12 +42,6 @@ echo "$yarn_repo" | tee /etc/apt/sources.list.d/yarn.list
/bin/chmod +x $n_location
/usr/local/bin/n lts
#Symbolic Link
ln -s /usr/bin/node /usr/local/bin/node
#node_modules directory creation
mkdir /usr/local/lib/node_modules/
#Install XO dependencies
/usr/bin/apt-get install --yes build-essential redis-server libpng-dev git python-minimal libvhdi-utils nfs-common
@@ -93,4 +90,4 @@ fi
echo ""
echo ""
echo "Installation complete, open a browser to:" && hostname -I && echo "" && echo "Default Login:"admin@admin.net" Password:"admin"" && echo "" && echo "Don't forget to change your password!"
fi