From d2e079a672d59a61de388a48ce6f3f32888ec911 Mon Sep 17 00:00:00 2001 From: Danp2 Date: Wed, 2 May 2018 07:14:04 -0500 Subject: [PATCH] Add symlinks to all plugins Fixes https://github.com/Jarli01/xenorchestra_installer/issues/18 --- xo_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xo_install.sh b/xo_install.sh index f5bdc11..5408d5f 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -48,6 +48,11 @@ 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 +# symlink all plugins +for source in =$(ls -d /opt/xen-orchestra/packages/xo-server-*); do + ln -s "$source" /usr/local/lib/node_modules/ +done + if [[ ! -e $systemd_service_dir/$xo_service ]] ; then /bin/cat << EOF >> $systemd_service_dir/$xo_service