Update higgins with zun

Updated the old name of higgins with new name zun.

Change-Id: I3535a54bd3d77d9591d6f0dee8ad67acca89178a
This commit is contained in:
bhavani 2017-03-09 11:26:53 +05:30
parent bc0e54180d
commit 7ab90cb937

View File

@ -1,25 +1,25 @@
# plugin.sh - DevStack plugin.sh dispatch script zun-ui
HIGGINS_UI_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd)
ZUN_UI_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd)
function install_zun_ui {
# NOTE(shu-mutou): workaround for devstack bug: 1540328
# where devstack install 'test-requirements' but should not do it
# for zun-ui project as it installs Horizon from url.
# Remove following two 'mv' commands when mentioned bug is fixed.
mv $HIGGINS_UI_DIR/test-requirements.txt $HIGGINS_UI_DIR/_test-requirements.txt
mv $ZUN_UI_DIR/test-requirements.txt $ZUN_UI_DIR/_test-requirements.txt
setup_develop ${HIGGINS_UI_DIR}
setup_develop ${ZUN_UI_DIR}
mv $HIGGINS_UI_DIR/_test-requirements.txt $HIGGINS_UI_DIR/test-requirements.txt
mv $ZUN_UI_DIR/_test-requirements.txt $ZUN_UI_DIR/test-requirements.txt
}
function configure_zun_ui {
cp -a ${HIGGINS_UI_DIR}/zun_ui/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
cp -a ${ZUN_UI_DIR}/zun_ui/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
# NOTE: If locale directory does not exist, compilemessages will fail,
# so check for an existence of locale directory is required.
if [ -d ${HIGGINS_UI_DIR}/zun_ui/locale ]; then
(cd ${HIGGINS_UI_DIR}/zun_ui; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
if [ -d ${ZUN_UI_DIR}/zun_ui/locale ]; then
(cd ${ZUN_UI_DIR}/zun_ui; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
fi
}