-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
bug: unchanged permessions on nfpm file #798
Comments
there's a lot going on there, can you provide the simplest possible reproducible of the issue? |
yes, this part for example before updating it :
after updating it :
the permessions didn't change after the update after i checked on a Debian environment. |
if you install in a clean system, does it have the right permissions? |
I did the installation on a container where the dependencies required are present, the permessions still unchanged |
what do you mean unchanged? were the files already there? I'm not following... |
Oh i'm sorry, i did it on a clean system now and the permissions are set correctly !! |
So the files I want to change permissions for already exist in my container, and usually I only need to change the permissions of the nfpm file. This should change the files' permissions after reinstalling the package in the container. However, it appears that this doesn't work for Debian. As a workaround, I created a post-install script to force the permission changes, and it worked. |
that's the way deb works, afaik it doesn't override existing files permissions... not much we can do. the post-install script is probably the right approach. |
What happened?
When attempting to modify the permessions of certain configuration files directly within the nfpm packaging file and testing it on a Debian environment, i found that the permessions remained unchanged.
How can we reproduce this?
Version 1.0.0
Version 1.01:
When updating from 1.0.0 to 1.0.1, the folders /etc/centreon-gorgone/config.d/cron.d and /etc/centreon-gorgone/config.d remain with the permessions 0775.
nfpm version
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: