From c1e58d98a04cc1299970f876a49ce3ce8a1784fe Mon Sep 17 00:00:00 2001 From: Jarli01 Date: Wed, 7 Feb 2018 10:00:45 -0500 Subject: [PATCH] Update xo_install.sh fixes to a few things - relative path etc. --- xo_install.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xo_install.sh b/xo_install.sh index 95307cf..c28308d 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -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