Update xo_install.sh
fixes to a few things - relative path etc.
This commit is contained in:
parent
4157c9cde4
commit
c1e58d98a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue