From e94425813b6b287183365dd61aa789d6374e0aa6 Mon Sep 17 00:00:00 2001 From: Jarli01 Date: Wed, 7 Feb 2018 10:27:50 -0500 Subject: [PATCH] Update xo_install.sh more fixes to paths --- xo_install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xo_install.sh b/xo_install.sh index 696d596..ae56853 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -33,7 +33,11 @@ sudo /usr/bin/apt-get install --yes build-essential redis-server libpng-dev git # Patch to allow config restore sed -i 's/< 5/> 0/g' /opt/xen-orchestra/xo-web/dist/src/xo-app/settings/config/index.js -cd /opt/xen-orchestra/packages/xo-server +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