]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
avoid postinst failure
authorGonéri Le Bouder <goneri.lebouder@enovance.com>
Wed, 5 Mar 2014 20:13:02 +0000 (21:13 +0100)
committerGonéri Le Bouder <goneri.lebouder@enovance.com>
Fri, 7 Mar 2014 16:02:00 +0000 (17:02 +0100)
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

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

index 10ed204200c3de1b536eed7225fc16b6d44cd8ba..b56d32090eb50bd5a5298da77fd47f7a1cf0b384 100644 (file)
@@ -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 <zigo@debian.org>  Mon, 09 Dec 2013 22:14:27 +0800
+ -- Gonéri Le Bouder <goneri@debian.org>  Wed, 05 Mar 2014 20:55:14 +0100
 
 horizon (2013.2-2) unstable; urgency=high
 
index 70d75cb35a06195de7677e5cf6553511c4273134..5ea427221f50b7a99a85b1fcfa69aa5c16a63ed5 100644 (file)
@@ -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