~ubuntu-server-dev/horizon/havana

« back to all changes in this revision

Viewing changes to debian/openstack-dashboard.postinst

  • Committer: James Page
  • Date: 2013-10-02 09:46:14 UTC
  • Revision ID: james.page@canonical.com-20131002094614-o246gkr3ibti3n0g
  - d/openstack-dashboard.{dirs,postinst}:
    + Create /var/lib/openstack-dashboard with restricted permissions,
      allowing www-data user to write a secret_key if need be.
    + Move /etc/openstack-dashboard/secret_key to correct location if
      it already exists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    # for more details of SECRET_KEY
55
55
    chown root:www-data /var/lib/openstack-dashboard
56
56
    chmod 0770 /var/lib/openstack-dashboard
 
57
    if [ -f /etc/openstack-dashboard/secret_key ]; then
 
58
      mv /etc/openstack-dashboard/secret_key /var/lib/openstack-dashboard
 
59
    fi
57
60
  fi
58
61
fi
59
62