-
Notifications
You must be signed in to change notification settings - Fork 124
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
How to manage /etc files #110
Comments
I use etc-keeper. But its not a 1:1 feature mapping. |
I was thinking about etckeeper, will give it a try, thanks. |
I am not a git master so there is probably better ways to use etckeeper. I really just use etckeeper to see the diff between a file/directory on one machine and some other box.(NB: Normally I would not use a bug tracker for one product to talk about another project but rich might have a better way for both of us. Plus it might help someone else who thinks vcsh + /etc) I set it up so that all of my machines push to a machine specific branch on the remote repository.
Then I can see the differences:
I have never used any actual git commands to change the files under etc. Most of the time a manual review of
|
In theory you could hack a version on vcsh to not use the home dir and use /etc instead. I don't think you could do this without a modified source at this point. Is there a reason not to use etcekeeper instead? |
I wanted to use one tool to manage home and
|
The major difference is that etckeeper has hooks to automate the process for whet you use a package manager. I would almost think it would be easier to fork etckeeper and add the ability to use fake roots and per-package repos using vcsh and myrepos as a guide than it would be to jury-rig vcsh to interface with the package manager. Of course if you want 100% manual control over etc then that is a non issue and a hacked version of vcsh could be pressed into service. |
On 03/03/2014 03:08 AM, Skurikhin Alexander wrote:
I would like vcsh to be able to do this. I have several use cases for In fact, I was surprised by the attachment to $HOME -- I was expecting BTW, when I realized the issue I simply ran "HOME=/tmp/test-vcsh bash" Dewey |
That would be great! I have a local branch that started work on supporting /etc, but it kinda died. Most, maybe all, of this should already be possible with config files. If not, patching that in would be the best course of action. |
OK, I've written such a script to do this. It's a pretty trivial wrapper around vcsh. RichiH, would you prefer me to push this to my own repo or would you like me to fork vcsh and give you a pull request? I've named it "vcsha" ("a" for "anywhere"). Or I can just mail it to you. |
I would prefer a proper fork, branch, pull request. The goal should be to get this back into mainline vcsh, not to fork off. |
I'd be happy to review work that make For my own part I use If anybody else is still actively interested in working on this please feel free to jump in. |
CC @bremner for potential interest. |
FWIW one can use repo-specific configuration to manage /etc files with vcsh:
|
Hello.
Could you guys, tell me how to manage
/etc
files with vcsh, I didn't find any clean solution.The text was updated successfully, but these errors were encountered: