]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
adjust the secret-key owner to www-data
authorGonéri Le Bouder <goneri.lebouder@enovance.com>
Wed, 5 Mar 2014 20:40:17 +0000 (21:40 +0100)
committerGonéri Le Bouder <goneri.lebouder@enovance.com>
Fri, 7 Mar 2014 16:02:19 +0000 (17:02 +0100)
(cherry picked from commit 9ee8959772c2d995447fbf6358ecacec7d9eb066)

Rewritten-From: 7a98ecc595a0b434e7a7b6d4e6f43042ecc97612

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

index 2da3f52dfc43820a22ec9dde214452e9887aadf4..e953601bdf7026cf597d08dbf556500803e23973 100644 (file)
@@ -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).
index 81f241a6a8a156f6c75c6e305a9d9048365e5eda..895f46eff23ee7b8543752eacf55e7cda816c39d 100644 (file)
@@ -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#