summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-06 12:54:47 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-06 12:54:47 -0500
commit74df694088c8ae1303434da70c4031b9a931c5c4 (patch)
tree45d761092191782b5f281ebfe63c5dd73a71d393 /etckeeper
parent05bcb26cd53c4358c5590a7c5a39fe9afc7f221b (diff)
* Add backwards compatability code to handle post-apt action. Closes: #459441
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper7
1 files changed, 7 insertions, 0 deletions
diff --git a/etckeeper b/etckeeper
index e2073ec..81068a1 100755
--- a/etckeeper
+++ b/etckeeper
@@ -33,6 +33,13 @@ fi
command="$1"
shift 1
+# compatability code
+if [ "$command" = "post-apt" ]; then
+ command=post-install
+elif [ "$command" = "pre-apt" ]; then
+ command=pre-install
+fi
+
if [ ! -d "/etc/etckeeper/$command.d" ]; then
echo "etckeeper: /etc/etckeeper/$command.d does not exist" >&2
exit 1