]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
* Fixed the issue with the file
authorThomas Goirand <thomas@goirand.fr>
Thu, 8 Oct 2015 21:54:08 +0000 (21:54 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 8 Oct 2015 21:54:08 +0000 (21:54 +0000)
    /var/lib/openstack-dashboard/secret-key/.secret_key_store not being
    writeable. What seems to happen is that compress, which is run as root,
    writes that file.

Rewritten-From: 623f3aa59f5c2d75f0b3d09f976968fd97270239

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

index f82bf8f277904b4801b5e062fe8c88c76f08bdba..1246ae9811bdac55894353eb7f2d09bb8c8c217b 100644 (file)
@@ -1,3 +1,12 @@
+horizon (2:8.0.0~rc1-2) UNRELEASED; urgency=medium
+
+  * Fixed the issue with the file
+    /var/lib/openstack-dashboard/secret-key/.secret_key_store not being
+    writeable. What seems to happen is that compress, which is run as root,
+    writes that file.
+
+ -- Thomas Goirand <zigo@debian.org>  Thu, 08 Oct 2015 21:52:34 +0000
+
 horizon (2:8.0.0~rc1-1) experimental; urgency=medium
 
   * New upstream release.
index 8df75b6cfeee89949daad2c2b9d68160600b4a41..2a8b8c9e0f12520bdcf27ad006fa5adce2b0216f 100644 (file)
@@ -43,6 +43,8 @@ HORIZON_USE_SSL=yes" >/etc/default/openstack-dashboard-apache
                        a2ensite openstack-dashboard.conf
                fi
                /usr/share/openstack-dashboard/manage.py compress --force
+               rm -f /var/lib/openstack-dashboard/secret-key/.secret_key_store
+               chown -R www-data /var/lib/openstack-dashboard/secret-key
                invoke-rc.d --quiet apache2 reload
        else
                sed -i 's#[ \t]*HORIZON_ACTIVATE_VHOSTS=.*#HORIZON_ACTIVATE_VHOSTS=no#' /etc/default/openstack-dashboard-apache
@@ -54,6 +56,8 @@ HORIZON_USE_SSL=yes" >/etc/default/openstack-dashboard-apache
                a2dissite openstack-dashboard-ssl.conf
                a2ensite openstack-dashboard-alias-only.conf
                /usr/share/openstack-dashboard/manage.py compress --force
+               rm -f /var/lib/openstack-dashboard/secret-key/.secret_key_store
+               chown -R www-data /var/lib/openstack-dashboard/secret-key
                invoke-rc.d --quiet apache2 reload
        fi
        db_stop
index 842da6ce69d62bc3557e18b7c4fc73b081856214..3fbd521dc7cd1a6d10b4c29a7f41927d5d608efe 100644 (file)
@@ -24,6 +24,8 @@ fi
 
 if [ "$1" = "triggered" ] ; then
        /usr/share/openstack-dashboard/manage.py compress --force
+       rm /var/lib/openstack-dashboard/secret-key/.secret_key_store
+       chown -R www-data /var/lib/openstack-dashboard/secret-key
 fi
 
 #DEBHELPER#