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

Automatic configuration files #71

Open
vincentbernat opened this issue Mar 20, 2014 · 10 comments
Open

Automatic configuration files #71

vincentbernat opened this issue Mar 20, 2014 · 10 comments
Labels

Comments

@vincentbernat
Copy link

The configuration files need to be declared with:

config_files '/etc/init.d/serf'

When doing "real" Debian packages, everything in /etc is automatically declared as a configuration file (unless otherwise specified). It would be convenient to have the same thing.

I am still pretty new at fpm/fpm-cookery, so maybe this is a "problem" in fpm instead. Tell me.

@bernd bernd added the feature label Apr 5, 2014
@bernd
Copy link
Owner

bernd commented Apr 5, 2014

I would be careful to add everything in /etc/ as config file by default. What about this?

config_files '/etc'

If an argument to config_files is a directory, everything in that directory will be marked as config file.

What do you think?

@vincentbernat
Copy link
Author

Yes, that would ne nice.

@glensc
Copy link
Contributor

glensc commented Aug 24, 2015

would also be nice if config_files supported globs:

config_files '/etc/*.conf'

@vincentbernat
Copy link
Author

Note that I pushed a change in FPM recently to ensure that, by default, everything in /etc is a configuration file. This is effective since v1.4.0.

@glensc
Copy link
Contributor

glensc commented Aug 24, 2015

can you spare details (commit link, ticket link) to answer my %config attribute questions here: #118

also is there way to invert your "everything is config" behaviour for some specific files?

@vincentbernat
Copy link
Author

See jordansissel/fpm#877

@glensc
Copy link
Contributor

glensc commented Aug 24, 2015

ah, it's debian specific then?

@vincentbernat
Copy link
Author

Yes, it is. Didn't know the convention for RPM.

@glensc
Copy link
Contributor

glensc commented Aug 24, 2015

There's no such global convention in RPM so this is probably fine.

@beddari
Copy link
Contributor

beddari commented Aug 24, 2015

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

No branches or pull requests

4 participants