From 85945bb42c9c8a1579f3a3bb9fc77dfdc54fe959 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 5 Mar 2014 21:13:02 +0100 Subject: [PATCH] avoid postinst failure if the default vhost was removed, a2dissite was not able to disable it as expected. Instead it produces a non 0 return code (cherry picked from commit 6a146da2aafc8acea43d658beda9f1824a09bd09) Rewritten-From: 68a365938dfab885033701481b60501722f8db98 --- xenial/debian/changelog | 4 +++- xenial/debian/openstack-dashboard-apache.postinst | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 10ed204..b56d320 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -8,13 +8,15 @@ horizon (2014.1~b2-1) experimental; urgency=low CSS and the JS * Add call "manage.py compress" with the --force parameter to avoid a warning an harmless warning for the user. + * avoid openstack-dashboard-apache.postinst failure if the default vhost + has been removed. [ Thomas Goirand ] * New upstream release (Icehouse beta 1). * Removes CVE-2013-6858 patch applied upstream. * Refreshed patch. - -- Thomas Goirand Mon, 09 Dec 2013 22:14:27 +0800 + -- Gonéri Le Bouder Wed, 05 Mar 2014 20:55:14 +0100 horizon (2013.2-2) unstable; urgency=high diff --git a/xenial/debian/openstack-dashboard-apache.postinst b/xenial/debian/openstack-dashboard-apache.postinst index 70d75cb..5ea4272 100644 --- a/xenial/debian/openstack-dashboard-apache.postinst +++ b/xenial/debian/openstack-dashboard-apache.postinst @@ -23,7 +23,7 @@ HORIZON_USE_SSL=yes" >/etc/default/openstack-dashboard-apache db_get horizon/activate_vhost if [ "${RET}" = "true" ] && [ -x /etc/init.d/apache2 ] ; then sed -i 's#[ \t]*HORIZON_ACTIVATE_VHOSTS=.*#HORIZON_ACTIVATE_VHOSTS=yes#' /etc/default/openstack-dashboard-apache - a2dissite default + a2dissite default || true db_get horizon/use_ssl if [ "${RET}" = "true" ] ; then sed -i 's#[ \t]*HORIZON_USE_SSL=.*#HORIZON_USE_SSL=yes#' /etc/default/openstack-dashboard-apache -- 2.45.2