-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Meta] Improve Deb/Rpm OpenSearch packaging in 2.x Releases #4087
Comments
The postinst Script inside opensearch package has several problems. First it doesn't use the right abstraction tools. Never use "systemctl" or "service" or whatever directly to interact with the init system. For good reasons there are abstractions to handle implementation details of the currrent init system. Please use:
https://www.debian.org/doc/debian-policy/ch-opersys.html#running-init-scripts They does always the RIGHT thing, even if a system administrator changes his init system. You can rely on them and save code inside postinst. |
That is a good callout @automaticserver we will look into those abstractions. |
Please have a look at my newly created proposal: #4243. E.g. there would be no need to implicitly use the abstractions as debhelper would generate those parts in the maintainer script the correct way automatically. /dm |
We will close the bugs related to 2.x, and will move some issues to track in the next possible major version. |
A new meta issue for the next major version release will be created later. |
Closing for now. |
Context
OpenSearch / OpenSearch Dashboard packages can be improved in several areas. Some of these improvements can arguably be considered breaking changes because they may somewhat disrupt users workflow. This PR is intended to aggregate the packaging improvement progress, see where we are and what are the next moves.
Progress
Improve ownership and permissions of files in OpenSearch deb and rpm packages #3898(reverted)Improve ownership and permissions of files in OpenSearch-Dashboards deb and rpm packages #3952(reverted)Fix opensearch-dashboard user's permission to allow reading the service configuration files #4038(reverted)ci-runner
username for 1000 uid #4191debian package: improve wording inpostinst
script #3109The text was updated successfully, but these errors were encountered: