Commit e12f2392 authored by Sandeep Kadam's avatar Sandeep Kadam

VF Groups - Fix external plugins logic

parent ca8e41b6
#!/bin/bash
#set -x
set -x
# determine root of repo
ROOT=$(cd $(dirname ${0})/../.. 2>/dev/null && pwd -P);
cd ${ROOT};
......@@ -52,13 +52,16 @@ fi
echo "Download external VF-WP plugins"
rm -rf vfwp-external-plugins || true;
git clone https://github.com/visual-framework/vfwp-external-plugins.git
# Start symlink for plugins
if [ -d "./wp-content/plugins" ]; then
echo "Creating Plugins symlinks";
PLUGIN_DIRS=$(ls ./vfwp-external-plugins | xargs);
for DIR in $PLUGIN_DIRS; do
ln -sf ${RELATIVE_DOCUMENT_ROOT}/vfwp-external-plugins/${DIR} ${WP_DEST_PLUGIN_PATH};
if [ -d "./vfwp-external-plugins/$DIR" ]; then
ln -sf ${ROOT}/${RELATIVE_DOCUMENT_ROOT}/vfwp-external-plugins/${DIR} ${ROOT}/${RELATIVE_DOCUMENT_ROOT}/wp-content/plugins;
fi
done;
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment