Merge "Move adding extra dashboard to the proper place"

This commit is contained in:
Zuul 2019-03-29 10:03:15 +00:00 committed by Gerrit Code Review
commit cf21988ad0

View File

@ -37,6 +37,12 @@ function start () {
rm -rf /var/run/apache2/*
APACHE_DIR="apache2"
# Add TaaS dashboard panel if available
TAAS_PANEL="${SITE_PACKAGES_ROOT}/neutron_taas_dashboard/enabled/_90_project_tapservices_panel.py"
if [ -f ${TAAS_PANEL} ]; then
ln -s ${TAAS_PANEL} ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/enabled/_90_project_tapservices_panel.py
fi
# If the image has support for it, compile the translations
if type -p gettext >/dev/null 2>/dev/null; then
cd ${SITE_PACKAGES_ROOT}/openstack_dashboard; /tmp/manage.py compilemessages
@ -47,12 +53,6 @@ function start () {
/tmp/manage.py compress --force
rm -rf /tmp/_tmp_.secret_key_store.lock /tmp/.secret_key_store
# Add TaaS dashboard panel if available
TAAS_PANEL="${SITE_PACKAGES_ROOT}/neutron_taas_dashboard/enabled/_90_project_tapservices_panel.py"
if [ -f ${TAAS_PANEL} ]; then
ln -s ${TAAS_PANEL} ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/enabled/_90_project_tapservices_panel.py
fi
exec apache2 -DFOREGROUND
}