]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
[MOS 9.x] Update Horizon package 46/24646/4 9.0/mitaka
authorIvan Udovichenko <iudovichenko@mirantis.com>
Mon, 8 Aug 2016 04:58:34 +0000 (07:58 +0300)
committerIvan Udovichenko <iudovichenko@mirantis.com>
Wed, 10 Aug 2016 16:13:11 +0000 (19:13 +0300)
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

trusty/debian/changelog
trusty/debian/openstack-dashboard.postinst

index 0097227233f19a1e6e33ec98ae28d3d634e8b41f..4e1a6eaff1d4e0fcccc2fb407075d30c5ad586c7 100644 (file)
@@ -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 <iudovichenko@mirantis.com>  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.
index 7d064f5be2302e209104ad8977ecd7bda8afc630..a4d9106059b2a1bf1b2eb1d5e070f20c43bf74a6 100644 (file)
@@ -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