Update xo_install.sh

fixes to a few things - relative path etc.
This commit is contained in:
Jarli01 2018-02-07 10:00:45 -05:00 committed by GitHub
parent 4157c9cde4
commit c1e58d98a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -8,7 +8,6 @@ node_source="https://deb.nodesource.com/setup_9.x"
yarn_gpg="https://dl.yarnpkg.com/debian/pubkey.gpg"
n_location="/usr/local/bin/n"
xo_server_dir="/opt/xen-orchestra"
xo_web_dir="/opt/xo-xen-orchestra"
systemd_service_dir="/lib/systemd/system"
xo_service="xo-server.service"
@ -32,12 +31,10 @@ sudo /usr/bin/apt-get install --yes build-essential redis-server libpng-dev git
/usr/bin/git/clone -b $xo_server
# Patch to allow config restore
sed -i 's/< 5/> 0/g' ../xo-web/dist/src/xo-app/settings/config/index.js
sed -i 's/< 5/> 0/g' /opt/xen-orchestra/xo-web/dist/src/xo-app/settings/config/index.js
cd $xo_server_dir
/usr/bin/yarn
/usr/bin/yarn build
cd packages/xo-server
sudo cp sample.config.yaml .xo-server.yaml
sudo sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xen-orchestra/packages/xo-web/dist'|" .xo-server.yaml
cd $xo_web_dir