Devstack plugin installtion

Added file to allow installation of the plugin in devstack

Change-Id: If4bf5bdfd60ed30f0cf1a8ebe9e94e78f7054729
This commit is contained in:
Murad Awawdeh 2016-07-17 11:15:38 +03:00
parent 3858dfcb94
commit 5e75b1484f
1 changed files with 15 additions and 0 deletions

15
devstack/plugin.sh Normal file
View File

@ -0,0 +1,15 @@
# plugin.sh
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
# no-op
:
fi
if [[ "$1" == "stack" && "$2" == "post-config" ]]; then
setup_develop $DEST/horizon_mellanox
cp ${DEST}/horizon_mellanox/enabled/_7000_mlx.py /opt/stack/horizon/openstack_dashboard/local/enabled/
cd /opt/stack/horizon
python manage.py collectstatic
python manage.py compress
service apache2 restart
fi