summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-07 16:11:59 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-07 16:11:59 -0400
commita3f643fc9d8fc4b45c1bed3cfa8415afb9eb3873 (patch)
tree7cd755972c5a414879ba4c57d615aeee5325a918 /etckeeper
parent7ec9cb9061e580733a6f4b45bbde5f6db670c5c9 (diff)
Add a AVOID_COMMIT_BEFORE_INSTALL option in the config file to make it easy to configure etckeeper to abort an installation if there are uncommitted changes in /etc. Closes: #478754
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper3
1 files changed, 3 insertions, 0 deletions
diff --git a/etckeeper b/etckeeper
index 49d1063..01bf326 100755
--- a/etckeeper
+++ b/etckeeper
@@ -33,6 +33,9 @@ fi
if [ ! -z "$LOWLEVEL_PACKAGE_MANAGER" ]; then
export LOWLEVEL_PACKAGE_MANAGER
fi
+if [ ! -z "$AVOID_COMMIT_BEFORE_INSTALL" ]; then
+ export AVOID_COMMIT_BEFORE_INSTALL
+fi
if [ -z "$1" ]; then
usage