Skip to content
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

packaging with non-root or different attributes #119

Open
glensc opened this issue Aug 25, 2015 · 2 comments
Open

packaging with non-root or different attributes #119

glensc opened this issue Aug 25, 2015 · 2 comments

Comments

@glensc
Copy link
Contributor

glensc commented Aug 25, 2015

i can't seem to find doc (not from fpm or fpm-cookery) how to package files with different owner or permission.

currently seems when building rpm files get owned by root and permissions stay what they were on checkout from vcs, meaning it's rather dependant on umask as well:

# ls -l tmp-build/1.2-1
-rw-rw---- 1 vagrant vagrant 4,9K aug    5 16:27 AbstractAutoload.php
# rpm -qplv pkg/php-ClassLoader-1.2-1.noarch.rpm 
-rw-rw----    1 root    root             4957 aug   25 12:27 /usr/share/php/AbstractAutoload.php

i would need to package some dirs of files like (rpm .spec syntax):

%dir %attr(771,root,http) /etc/appname
%attr(660,root,http) /etc/appname/config.php
@glensc
Copy link
Contributor Author

glensc commented Aug 25, 2015

seems fpm supports per file attributes, so via that can specify per file permissions and group

but no mapping for that in fpm-cookery?

@glensc
Copy link
Contributor Author

glensc commented Aug 25, 2015

for %dir, this works from recipe:

    directories << '/etc/appname'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant