summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 17:09:08 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 17:09:08 -0500
commit27eda35e0b9758e1611ca7c4c0eb625f2246dd68 (patch)
tree17bbafd279b008db9c6e299cd2118c4a3ae5a118 /etckeeper
parentb0160eb5daf39f3258eb06e677bcc433c7425ca0 (diff)
rationalise the cd /etc handling
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper4
1 files changed, 4 insertions, 0 deletions
diff --git a/etckeeper b/etckeeper
index dd44b02..7ba2682 100755
--- a/etckeeper
+++ b/etckeeper
@@ -17,4 +17,8 @@ if [ ! -d "/etc/etckeeper/$command.d" ]; then
exit 1
fi
+if [ "$command" = post-apt ] || [ "$command" = pre-apt ]; then
+ `cd /etc
+fi
+
run-parts "/etc/etckeeper/$command.d"