From 0b45ec05973e65d25ca637a188711ea0de5e4b3c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 7 Feb 2016 09:55:05 +0000 Subject: [PATCH] Add uncommitted etckeeper-* things --- etckeeper-commit-post | 10 ++++++++++ etckeeper-commit-pre | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 etckeeper-commit-post create mode 100755 etckeeper-commit-pre diff --git a/etckeeper-commit-post b/etckeeper-commit-post new file mode 100755 index 000000000..489b2bd55 --- /dev/null +++ b/etckeeper-commit-post @@ -0,0 +1,10 @@ +#!/bin/sh + +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +which etckeeper > /dev/null 2>&1 || exit 0 + +etckeeper commit "committing changes in /etc after puppet catalog run" + +# Failure of etckeeper should not be fatal. +exit 0 diff --git a/etckeeper-commit-pre b/etckeeper-commit-pre new file mode 100755 index 000000000..a66fb62d2 --- /dev/null +++ b/etckeeper-commit-pre @@ -0,0 +1,10 @@ +#!/bin/sh + +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +which etckeeper > /dev/null 2>&1 || exit 0 + +etckeeper commit "saving uncommitted changes in /etc prior to puppet catalog run" + +# Failure of etckeeper should not be fatal. +exit 0 -- 2.20.1