From ef70e3d7e62671d0cadb2731e6965768f73ca290 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Jan 2008 21:12:05 -0500 Subject: * Added configuration options for highlevel and lowlevel package managers in etckeeper.conf. * Only install apt hooks if apt is used. * Only add backup conffile exclusion to gitignore if dpkg is used. * Rename pre/post-apt.d to pre/post-install.d to allow the same directories to be used for other package managers. * Use the name of the highlevel package manager in commit messages. --- README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README') diff --git a/README b/README index 7ec20b2..c4887c5 100644 --- a/README +++ b/README @@ -33,8 +33,8 @@ So don't use it on git repositories from untrusted sources. etckeeper has special support to handle changes to /etc caused by installing and upgrading packages. Before apt installs packages, -`etckeeper pre-apt` will check that /etc contains no uncommitted changes. -After apt installs packages, `etckeeper post-apt` will add any new +`etckeeper pre-install` will check that /etc contains no uncommitted changes. +After apt installs packages, `etckeeper post-install` will add any new interesting files to the repository, and commit the changes. git is designed as a way to manage source code, not as a way to manage @@ -143,7 +143,7 @@ action. For example, here's how to configure it to run `git gc` after each apt run, which will save a lot of disk space: - cd /etc/etckeeper/post-apt.d + cd /etc/etckeeper/post-install.d (echo '#!/bin/sh' ; echo 'exec git-gc') > 99git-gc chmod +x 99git-gc git add . @@ -152,7 +152,7 @@ which will save a lot of disk space: Here's how to disable the automatic commits after each apt run, while still letting it git-add new files and git-rm removed ones: - chmod -x /etc/etckeeper/post-apt.d/75git-commit + chmod -x /etc/etckeeper/post-install.d/75git-commit Note that the etckeeper commands are careful to not hardcode anything about git. If you want to use some other revision control system, that's -- cgit v1.2.3