-horizon (2:9.0.0-3) UNRELEASED; urgency=medium
+horizon (2:9.0.0-3) unstable; urgency=medium
[ Ondřej Nový ]
* d/copyright: Changed source URL to https protocol
* d/openstack-dashboard.{preinst,postinst,postrm},
openstack-dashboard-apache.{preinst,postinst,postrm}:
- Pass the correct version to dpkg-maintscript-helper script.
+ * d/openstack-dashboard.postinst:
+ - Check if django.utils.log.NullHandler class is being used and
+ replace it with logging.NullHandler class if it is true. (Closes: #822907)
[ Thomas Goirand ]
* Horizon doesn't build with python-django-nose in Jessie, so increasing the
chown www-data:www-data /var/lib/openstack-dashboard/secret-key
mkdir -p /etc/openstack-dashboard
- if ! [ -f /etc/openstack-dashboard/local_settings.py ] ; then
- cp /usr/share/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py
+ DASHBOARD_LOCAL_SETTINGS='/etc/openstack-dashboard/local_settings.py'
+ if ! [ -f "$DASHBOARD_LOCAL_SETTINGS" ] ; then
+ cp /usr/share/openstack-dashboard/local_settings.py $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
-
if [ -L /usr/share/openstack-dashboard/static ]; then
if ! [ $(readlink -s /usr/share/openstack-dashboard/static) = /var/lib/openstack-dashboard/static ]; then
ln -fs /var/lib/openstack-dashboard/static /usr/share/openstack-dashboard/static