From: Gonéri Le Bouder Date: Wed, 5 Mar 2014 20:24:30 +0000 (+0100) Subject: call manage.py compress with www-data X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6f02265581d294692d2b84a4ef888dc8d8fd84f0;p=openstack-build%2Fhorizon-build.git call manage.py compress with www-data use www-data to call manage.py compress to get the correct owner on the cache file and the secret-key (cherry picked from commit 692e3cf3f59778387d781a670ebe9556a9c197d8) Rewritten-From: 9c50f23084c980f3ad1d1979bb7159b28af51a55 --- diff --git a/trusty/debian/changelog b/trusty/debian/changelog index b56d320..2da3f52 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -10,6 +10,8 @@ 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 [ Thomas Goirand ] * New upstream release (Icehouse beta 1). diff --git a/trusty/debian/openstack-dashboard.postinst b/trusty/debian/openstack-dashboard.postinst index 77a87c8..81f241a 100644 --- a/trusty/debian/openstack-dashboard.postinst +++ b/trusty/debian/openstack-dashboard.postinst @@ -17,7 +17,7 @@ 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 - /usr/share/openstack-dashboard/manage.py compress --force + su www-data -s /bin/sh -c "/usr/share/openstack-dashboard/manage.py compress --force" fi #DEBHELPER#