Comment 6 for bug 1775170

Revision history for this message
Seyeong Kim (seyeongkim) wrote :

Hello Corey

I've analyzed those.

In preinst, below line there.

rm -rf /usr/share/openstack-dashboard/static/ || :
rm -rf /var/lib/openstack-dashboard/static/ || :

it is not the same as

find /usr/share/openstack-dashboard/horizon/static/horizon/lib/ ! -name 'jquery.bootstrap.wizard.js' -delete || :

because /usr/share/openstack-dashboard/static is link to /usr/share/openstack-dahsboard/openstack_dashboard/static

I moved delete code to preinst instead of postinst(don't need to restart apache2 again)

Could you please review this?

Thanks a lot!