mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
When uninstalling or upgrading elasticsearch using the RPM package some empty directories remain on the filesystem: /usr/share/elasticsearch/bin /usr/share/elasticsearch/lib /usr/share/elasticsearch/modules /usr/share/elasticsearch/modules/foo Having empty directories in modules can prevent elasticsearch to start after an upgrade: the plugins service expects to find a plugin-descriptor.properties file in every sub directory of modules. This PR cleans things a bit so that these empty directories are removed on upgrade/removal like it was in 2.x.