]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
call manage.py compress with www-data
authorGonéri Le Bouder <goneri.lebouder@enovance.com>
Wed, 5 Mar 2014 20:24:30 +0000 (21:24 +0100)
committerGonéri Le Bouder <goneri.lebouder@enovance.com>
Fri, 7 Mar 2014 16:02:10 +0000 (17:02 +0100)
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

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

index b56d32090eb50bd5a5298da77fd47f7a1cf0b384..2da3f52dfc43820a22ec9dde214452e9887aadf4 100644 (file)
@@ -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).
index 77a87c8e0cf47ee74f9024115c30753d25e0079b..81f241a6a8a156f6c75c6e305a9d9048365e5eda 100644 (file)
@@ -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#