Fix the STATIC_ROOT after overwriting local_settings.py
Horizon does some post-processing on local_settings.py file, and we are overwriting that here, so we have to repeat that operation. Line copied from: https://github.com/redhat-openstack/tripleo-image-elements/blob/master-patches/elements/horizon/os-refresh-config/post-configure.d/14-horizon#L22 Change-Id: I96331c8c977cad2d5aee237c17e34ff866ef9959
This commit is contained in:
parent
0d3786ec58
commit
e1efdc7835
|
@ -13,6 +13,7 @@ else
|
|||
LOCAL_SETTINGS_FILE=/etc/horizon/local_settings.py
|
||||
DJANGO_ADMIN=django-admin
|
||||
cp $LOCAL_SETTINGS_FILE /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
|
||||
sed -i 's#^STATIC_ROOT.*#STATIC_ROOT = "'/usr/share/openstack-dashboard/static'"#' /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
|
||||
fi
|
||||
|
||||
source /root/stackrc
|
||||
|
@ -73,7 +74,7 @@ if [ -n "${HORIZON_VENV_DIR:-}" ]; then
|
|||
set -u
|
||||
else
|
||||
cp $LOCAL_SETTINGS_FILE /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
|
||||
cp -r /var/www/horizon/static/dashboard/* /usr/share/openstack-dashboard/static/dashboard/
|
||||
sed -i 's#^STATIC_ROOT.*#STATIC_ROOT = "'/usr/share/openstack-dashboard/static'"#' /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
|
||||
fi
|
||||
|
||||
os-svc-enable -n apache2
|
||||
|
|
Loading…
Reference in New Issue