diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-06 12:54:47 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-06 12:54:47 -0500 |
commit | 74df694088c8ae1303434da70c4031b9a931c5c4 (patch) | |
tree | 45d761092191782b5f281ebfe63c5dd73a71d393 /etckeeper | |
parent | 05bcb26cd53c4358c5590a7c5a39fe9afc7f221b (diff) |
* Add backwards compatability code to handle post-apt action. Closes: #459441
Diffstat (limited to 'etckeeper')
-rwxr-xr-x | etckeeper | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |