From: Gonéri Le Bouder Date: Wed, 5 Mar 2014 20:40:17 +0000 (+0100) Subject: adjust the secret-key owner to www-data X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b8e45801e7a3d86f2d3b7ea47c28a721f20d1f3e;p=openstack-build%2Fhorizon-build.git adjust the secret-key owner to www-data (cherry picked from commit 9ee8959772c2d995447fbf6358ecacec7d9eb066) Rewritten-From: 7a98ecc595a0b434e7a7b6d4e6f43042ecc97612 --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 2da3f52..e953601 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -10,8 +10,7 @@ horizon (2014.1~b2-1) experimental; urgency=low a warning an harmless warning for the user. * avoid openstack-dashboard-apache.postinst failure if the default vhost has been removed. - * use www-data to call manage.py compress to get the correct owner on - the cache file and the secret-key + * adjust the secret-key group to www-data [ Thomas Goirand ] * New upstream release (Icehouse beta 1). diff --git a/xenial/debian/openstack-dashboard.postinst b/xenial/debian/openstack-dashboard.postinst index 81f241a..895f46e 100644 --- a/xenial/debian/openstack-dashboard.postinst +++ b/xenial/debian/openstack-dashboard.postinst @@ -17,7 +17,8 @@ if [ "$1" = "configure" ] ; then chown www-data:www-data /var/lib/openstack-dashboard/secret-key # Compress the JS and CSS with python-compressor and python-lesscpy - su www-data -s /bin/sh -c "/usr/share/openstack-dashboard/manage.py compress --force" + /usr/share/openstack-dashboard/manage.py compress --force + chown -R www-data /var/lib/openstack-dashboard/secret-key fi #DEBHELPER#