Create /usr/local/lib/node_modules/ if missing

This commit is contained in:
Danp2 2018-08-17 07:51:34 -05:00 committed by GitHub
parent 0bef04ccee
commit 34f6d29ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,8 @@ cd packages/xo-server
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
mkdir -p /usr/local/lib/node_modules/
# symlink all plugins
for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do
ln -s "$source" /usr/local/lib/node_modules/