Merge pull request #34 from Jarli01/Danp2-patch-1

Create /usr/local/lib/node_modules/ if missing
This commit is contained in:
Dustin B 2018-08-17 08:52:35 -04:00 committed by GitHub
commit c9b6d22ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ cd packages/xo-server
cp sample.config.yaml .xo-server.yaml cp sample.config.yaml .xo-server.yaml
sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xen-orchestra/packages/xo-web/dist'|" .xo-server.yaml sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xen-orchestra/packages/xo-web/dist'|" .xo-server.yaml
mkdir -p /usr/local/lib/node_modules/
# symlink all plugins # symlink all plugins
for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do
ln -s "$source" /usr/local/lib/node_modules/ ln -s "$source" /usr/local/lib/node_modules/