diff --git a/horizon/templates/bin/_horizon.sh.tpl b/horizon/templates/bin/_horizon.sh.tpl index 3b42a2a03c..dec000f3e2 100644 --- a/horizon/templates/bin/_horizon.sh.tpl +++ b/horizon/templates/bin/_horizon.sh.tpl @@ -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 }