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