Fix: Ignore "bad" plugins (#70)
This commit is contained in:
parent
d15b30776a
commit
5273ad5b09
|
@ -54,12 +54,21 @@ cd $xo_server_dir
|
||||||
cd packages/xo-server
|
cd packages/xo-server
|
||||||
cp sample.config.toml .xo-server.toml
|
cp sample.config.toml .xo-server.toml
|
||||||
|
|
||||||
|
dest=/usr/local/lib/node_modules/
|
||||||
#Create node_modules directory if doesn't exist
|
#Create node_modules directory if doesn't exist
|
||||||
mkdir -p /usr/local/lib/node_modules/
|
mkdir -p $dest
|
||||||
|
|
||||||
|
# Plugins to ignore
|
||||||
|
ignoreplugins=("xo-server-test")
|
||||||
|
|
||||||
# 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/
|
plugin=$(basename $source)
|
||||||
|
if [[ "${ignoreplugins[@]}" =~ $plugin ]]; then
|
||||||
|
echo "Ignoring $plugin plugin"
|
||||||
|
else
|
||||||
|
ln -s "$source" "$dest"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! -e $systemd_service_dir/$xo_service ]] ; then
|
if [[ ! -e $systemd_service_dir/$xo_service ]] ; then
|
||||||
|
|
Loading…
Reference in New Issue