Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Feature request: Include functionality #19

Closed
bbaserdem opened this issue Nov 12, 2019 · 2 comments
Closed

Feature request: Include functionality #19

bbaserdem opened this issue Nov 12, 2019 · 2 comments

Comments

@bbaserdem
Copy link

I am distributing configs through etckeeper across my computers. For my use case, it could be useful to have a line such as #include /etc/sbupdate.local.conf, so I could give generic options in /etc/sbupdate.conf, which can be shared accross devices; and device specific info on some file that will be distributed in some other way.

@andreyv
Copy link
Owner

andreyv commented Nov 12, 2019

The config file is a Bash script. You can do

[[ -f "/etc/sbupdate.local.conf" ]] && source "/etc/sbupdate.local.conf"

in the config.

@bbaserdem
Copy link
Author

Oh did not realize that is was a bash script. Then functionality already exists.

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

No branches or pull requests

2 participants