From: Ivan Udovichenko Date: Mon, 8 Aug 2016 04:58:34 +0000 (+0300) Subject: [MOS 9.x] Update Horizon package X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fheads%2F9.0%2Fmitaka;p=openstack-build%2Fhorizon-build.git [MOS 9.x] Update Horizon package DEBUG value should be set to False as we use Horizon in production [1]. Related-Bug: #1610122 [1] http://docs.openstack.org/developer/horizon/topics/settings.html #debug-and-template-debug Change-Id: Ib334eacb93e0b947522bd25cd4aa29cddd1d5164 --- diff --git a/trusty/debian/changelog b/trusty/debian/changelog index 0097227..4e1a6ea 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -1,3 +1,10 @@ +horizon (2:9.0.1-3~u14.04+mos0) mos9.0; urgency=medium + + * d/openstack-dashboard.postinst: Set DEBUG value to False in + local_settings.py configuration file. + + -- Ivan Udovichenko Mon, 08 Aug 2016 08:22:18 +0300 + horizon (2:9.0.1-2~u14.04+mos0) mos9.0; urgency=medium * Sync important changes from Debian. diff --git a/trusty/debian/openstack-dashboard.postinst b/trusty/debian/openstack-dashboard.postinst index 7d064f5..a4d9106 100644 --- a/trusty/debian/openstack-dashboard.postinst +++ b/trusty/debian/openstack-dashboard.postinst @@ -20,6 +20,9 @@ if [ "$1" = "configure" ] ; then if ! [ -f "$DASHBOARD_LOCAL_SETTINGS" ] ; then cp /usr/share/openstack-dashboard/local_settings.py $DASHBOARD_LOCAL_SETTINGS fi + if [ -f "$DASHBOARD_LOCAL_SETTINGS" ] ; then + sed -i "s|^[ \t]*DEBUG[ \t]=.*|DEBUG = False|" $DASHBOARD_LOCAL_SETTINGS + fi if [ -f "$DASHBOARD_LOCAL_SETTINGS" ] && grep -q 'django.utils.log.NullHandler' $DASHBOARD_LOCAL_SETTINGS; then sed -i 's/django.utils.log.NullHandler/logging.NullHandler/g' $DASHBOARD_LOCAL_SETTINGS fi @@ -30,7 +33,6 @@ if [ "$1" = "configure" ] ; then else ln -fs /var/lib/openstack-dashboard/static /usr/share/openstack-dashboard/static fi - # Compress the JS and CSS with python-compressor and python-lesscpy /usr/share/openstack-dashboard/manage.py collectstatic --clear --noinput /usr/share/openstack-dashboard/manage.py compress --force