The Horizon package comming from Ubuntu has numerous issues, and this
patch attemps to fix some of them. There's some less important things
which could be fixed later on.
* Adds missing symlinks to horizon to fix broken offline compress, which
made the package uninstallable (LP: #1470143).
* Ran wrap-and-sort -t -a to make dependencies readable.
* Run compile-messages at build time, not in postinst.
* Activates off-line compress.
* Fix path of secret-key to be in /var (as /usr should be considered to be a
read-only filesystem, as per Debian policy).
* Copy the missing angular folder.
* debian/openstack-dashboard.postinst
- Re-wrapped the file which was really unreadable in its current state.
- Redefines --home as /var/lib/horizon, and not /usr/share/horizon, which
really is not policy compliant (in openstack-dashboard.postinst).
- Completely remove the collecstatic which should *never* be done in this
package: we're not using a virtualenv!
- Completely remove chown of files in /usr. By policy of the FSHS, this
should *never* happen.
- Removed chown of /etc/openstack-dashboard. This is useless and
dangerous in therms of security.
- Avoids hacks with the secret-key folder in postinst (since we've set
that by default to be /var in the default config file).
- Add off-line compress if triggered.
* Add trigger if the some javascripts are updated.
* Fixes /horizon/static Alias directives (thanks to I. Yozhikov).
* Fixes in _variables.scss for /horizon/ webroot
* Activating OFFLINE_COMPRESS=True, which speeds up a lot Horizon.
* Fix the way /var/lib/openstack-dashboard/secret_key is handled
(previously a copy of /etc/openstack-dashboard, now an alias to it).
* Fix tests to not try to overwrite the package apache config.
Reviewed: https:/ /review. fuel-infra. org/8945 ci/fuel- 7.0/2015. 1.0
Submitter: Ivan Udovichenko <email address hidden>
Branch: openstack-
Commit: b66c8946d35a15c a5d7b5e4e97ac90 423ff037ab
Author: Thomas Goirand <email address hidden>
Date: Tue Jul 7 19:30:18 2015
Fix numerous issues in the Horizon package
The Horizon package comming from Ubuntu has numerous issues, and this
patch attemps to fix some of them. There's some less important things
which could be fixed later on.
* Adds missing symlinks to horizon to fix broken offline compress, which openstack- dashboard. postinst dashboard. postinst) . dashboard. This is useless and COMPRESS= True, which speeds up a lot Horizon. openstack- dashboard/ secret_ key is handled dashboard, now an alias to it).
made the package uninstallable (LP: #1470143).
* Ran wrap-and-sort -t -a to make dependencies readable.
* Run compile-messages at build time, not in postinst.
* Activates off-line compress.
* Fix path of secret-key to be in /var (as /usr should be considered to be a
read-only filesystem, as per Debian policy).
* Copy the missing angular folder.
* debian/
- Re-wrapped the file which was really unreadable in its current state.
- Redefines --home as /var/lib/horizon, and not /usr/share/horizon, which
really is not policy compliant (in openstack-
- Completely remove the collecstatic which should *never* be done in this
package: we're not using a virtualenv!
- Completely remove chown of files in /usr. By policy of the FSHS, this
should *never* happen.
- Removed chown of /etc/openstack-
dangerous in therms of security.
- Avoids hacks with the secret-key folder in postinst (since we've set
that by default to be /var in the default config file).
- Add off-line compress if triggered.
* Add trigger if the some javascripts are updated.
* Fixes /horizon/static Alias directives (thanks to I. Yozhikov).
* Fixes in _variables.scss for /horizon/ webroot
* Activating OFFLINE_
* Fix the way /var/lib/
(previously a copy of /etc/openstack-
* Fix tests to not try to overwrite the package apache config.
Closes-Bug: #1470143 d03a9965aa66fb9 407d3f8d1dd
Change-Id: I7de1968ff9c1dd