On 11/05/2021 10.29, Thomas Goirand wrote:
* Do not use an enable folder in /etc, as this marks all files from plugins as CONFFILE, meaning they aren't removed when plugins are removed, which makes Horizon crash (Closes: #987904):
Do you still want these snippets to be customizable? Or was that only an unneeded side effect of them being conffiles?
- In python3-django-horizon.preinst, transform the symlink /usr/lib/python3/dist-packages/openstack_dashboard/local/enabled into a folder. - Remove the symlink creation from the openstack-dashboard.postinst.
That symlink wasn't shipped previously? The (empty) directory is now shipped in the package?
- Add versioned Breaks: on all the Horizon plugins, as they now must push the files into that folder instead of /etc.
The plugins need a versioned (pre-)dependency on the fixed python3-django-horizon s.t. they don't get unpacked before the symlink was transformed. You probably need Pre-Depends here.
The plugins also should rm_conffile everything they previously shipped in /etc/.../enabled/ in their .maintscript files
Andreas