[TAG] Version control for /etc
Kapil Hari Paranjape
kapil at imsc.res.in
Fri Oct 26 14:09:42 MSD 2007
Hello,
On Fri, 26 Oct 2007, Thomas Adam wrote:
> [git]'s very good, but not so good for something
> like /etc -- since its permissions model is something to desired.
A solution to this problem which is used in a slightly different
context (user home directories rather than /etc) is to use an update
hook.
http://kitenet.net/~joey/cvshome/ (using CVS)
http://www.onlamp.com/pub/a/onlamp/2005/01/06/svn_homedir.html (using SVN)
Basically, the idea is to run a script at the end which fixes
permissions. The config file that dictates the permissions (and
possibly empty directories) can be one of the files in your
configuration which will be updated. The hook-script is part of the
VC infrastructure and resides in $GIT_DIR.
Regards,
Kapil.
--
More information about the TAG
mailing list