diff options
-rwxr-xr-x | post-apt.d/50git-add | 6 | ||||
-rwxr-xr-x | post-apt.d/75git-commit | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/post-apt.d/50git-add b/post-apt.d/50git-add new file mode 100755 index 0000000..903e5aa --- /dev/null +++ b/post-apt.d/50git-add @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +cd /etc +if ! git-add .; then + echo "etckeeper warning: git-add failed" >&2 +fi diff --git a/post-apt.d/75git-commit b/post-apt.d/75git-commit new file mode 100755 index 0000000..0a84fbd --- /dev/null +++ b/post-apt.d/75git-commit @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +# TODO: figure out what packages were acted on by the apt run, and include +# that info in the commit message +message="committing changes after apt run" + +if ! git commit -m "$message"; then + echo "etckeeper warning: git-commit failed" +fi |