diff options
| author | Corey Bryant <corey.bryant@canonical.com> | 2016-04-18 20:07:51 (GMT) |
|---|---|---|
| committer | Corey Bryant <corey.bryant@canonical.com> | 2016-04-18 20:07:51 (GMT) |
| commit | 0a2c97442a1f63a4d72ed14090132524e8226ec2 (patch) | |
| tree | c0f65a0c445fcbee86045712ff53b9b7a39ad57c | |
| parent | f86ae0cc4b842a6eb809b1ccb698f2d6561434c5 (diff) | |
d/openstack-dashboard.[preinst|postrm]: Remove any static files from /usr/share/openstack-dashboard/static/* prior to install and after removal (LP: #1568971).
| -rw-r--r-- | debian/changelog | 8 | ||||
| -rw-r--r-- | debian/openstack-dashboard.postrm | 1 | ||||
| -rw-r--r-- | debian/openstack-dashboard.preinst | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index af59311..cc91e0b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +horizon (2:9.0.0-0ubuntu2) UNRELEASED; urgency=medium + + * d/openstack-dashboard.[preinst|postrm]: Remove any static files from + /usr/share/openstack-dashboard/static/* prior to install and after removal + (LP: #1568971). + + -- Corey Bryant <corey.bryant@canonical.com> Mon, 18 Apr 2016 15:05:42 -0400 + horizon (2:9.0.0-0ubuntu1) xenial; urgency=medium * Final upstream release for OpenStack Mitaka. diff --git a/debian/openstack-dashboard.postrm b/debian/openstack-dashboard.postrm index 407ec1b..8eb844a 100644 --- a/debian/openstack-dashboard.postrm +++ b/debian/openstack-dashboard.postrm @@ -30,6 +30,7 @@ if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then [ -x /etc/init.d/apache2 ] && invoke-rc.d --quiet apache2 reload fi + rm -rf /usr/share/openstack-dashboard/static/* || : fi if [ "$1" = "purge" ] ; then diff --git a/debian/openstack-dashboard.preinst b/debian/openstack-dashboard.preinst index 4979072..9cc2ba8 100644 --- a/debian/openstack-dashboard.preinst +++ b/debian/openstack-dashboard.preinst @@ -14,4 +14,6 @@ dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf-available/openstack-dashboard.conf \ 1:2013.2~b2-0ubuntu3 -- "$@" +rm -rf /usr/share/openstack-dashboard/static/* || : + #DEBHELPER# |
