watcher-dashboard/tools/register_plugin.sh
Vincent Francoise b4fb6f7573 Watcher Dashboard - Initial commit
This patchset puts in open source the code initially made internally.
This dashboard follows the new plugin architecture that Horizon
introduced.

DocImpact
Implements: blueprint watcher-ui

Change-Id: Ic8736b45ae5e111a817f64568ed0534c1521c84d
2016-02-17 13:38:41 +00:00

17 lines
508 B
Bash
Executable File

#!/bin/bash
src_path=`cd "$1"; pwd`
dest_path=`cd "$2"; pwd`
# echo "$src_path --> $dest_path"
for filepath in $src_path/watcher_dashboard/enabled/*.py; do
filename=$(basename $filepath)
if [ $filename != "__init__.py" ]; then
echo $filepath
src_filepath="`cd "$(dirname $filepath)"; pwd`/$filename"
dest_filepath="$dest_path/openstack_dashboard/local/enabled/$filename"
echo "$src_filepath --> $dest_filepath"
ln -s $src_filepath $dest_filepath
fi
done