~ubuntu-branches/ubuntu/saucy/horizon/saucy

« back to all changes in this revision

Viewing changes to debian/openstack-dashboard.postinst

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-10-04 14:17:43 UTC
  • Revision ID: package-import@ubuntu.com-20131004141743-0m2reql75ucadcv6
Tags: 1:2013.2~rc1-0ubuntu2
* d/theme/css/ubuntu.css: Refresh Ubuntu theme against new Havana
  stylesheets, fixing network and chart layouts (LP: #1235249).
* d/openstack-dashboard.postinst: Allow horizon user to read and
  write data in /var/lib/openstack-dashboard inline with user and
  group permissions set in Apache configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  if [ -d /var/lib/openstack-dashboard ] ; then
53
53
    # Generated secret storage for single node use - see local_settings.py
54
54
    # for more details of SECRET_KEY
55
 
    chown root:www-data /var/lib/openstack-dashboard
56
 
    chmod 0770 /var/lib/openstack-dashboard
 
55
    chmod 0700 /var/lib/openstack-dashboard
57
56
    if [ -f /etc/openstack-dashboard/secret_key ]; then
58
57
      mv /etc/openstack-dashboard/secret_key /var/lib/openstack-dashboard
59
58
    fi
 
59
    chown -R horizon:horizon /var/lib/openstack-dashboard
60
60
  fi
61
61
fi
62
62