Comments (8)
if you install in a clean system, does it have the right permissions?
from nfpm.
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.
and Yes, the usual approach worked when I tested it on a clean system, but it's not working when updating a system where the files already exists.
from nfpm.
there's a lot going on there, can you provide the simplest possible reproducible of the issue?
from nfpm.
yes, this part for example before updating it :
- dst: "/etc/centreon-gorgone/config.d"
type: dir
file_info:
owner: centreon-gorgone
group: centreon-gorgone
mode: 0775
- dst: "/etc/centreon-gorgone/config.d/cron.d"
type: dir
file_info:
owner: centreon-gorgone
group: centreon-gorgone
mode: 0775
after updating it :
- dst: "/etc/centreon-gorgone/config.d"
type: dir
file_info:
owner: centreon-gorgone
group: centreon-gorgone
mode: 0770
- dst: "/etc/centreon-gorgone/config.d/cron.d"
type: dir
file_info:
owner: centreon-gorgone
group: centreon-gorgone
mode: 0770
the permessions didn't change after the update after i checked on a Debian environment.
from nfpm.
I did the installation on a container where the dependencies required are present, the permessions still unchanged
from nfpm.
what do you mean unchanged? were the files already there? I'm not following...
from nfpm.
Oh i'm sorry, i did it on a clean system now and the permissions are set correctly !!
from nfpm.
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.
from nfpm.
Related Issues (20)
- Add support for SOURCE_DATE_EPOCH HOT 1
- Bad rights on created subdirectories HOT 10
- [docs] RuntimeDirectory was introduced in 211. Use of < 231 doesn't make sense HOT 1
- `nfpm` does not ensure reproducible builds HOT 8
- `mtime` is not used from config HOT 1
- Introduction of reproducible builds causes Lintian to throw `package-contains-ancient-file` errors for directories HOT 3
- Ability to specify a type as "config|tree" for `/etc` so that all files are referenced in configfiles HOT 1
- `file_info.mode` is not inherited when using `type: tree` HOT 2
- only last depends/provides/conflicts are written in package HOT 2
- APK: setting release creates invalid package version HOT 5
- [apk] Cannot sign package HOT 3
- s390x support HOT 4
- [apk] package file format error HOT 1
- [apk] Misleading documentation for apk.signature.key_name HOT 2
- Has the minimum Go version (intentionally) changed? HOT 4
- Add AIX platform capability to rpm builds HOT 8
- Call to signer failed: signing error: openpgp: s2k GNU dummy key: dummy key found HOT 8
- Relative paths for src are treated as symlinks HOT 2
- Alternative 'type: tree' behavior to omit intermediate directories? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfpm.