From 01af1d05a2c3d95101921ca8cec9a03d9eea5150 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 16 Sep 2022 23:04:08 +0200 Subject: initial puppet.LW configuration --- etckeeper-commit-pre | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 etckeeper-commit-pre (limited to 'etckeeper-commit-pre') diff --git a/etckeeper-commit-pre b/etckeeper-commit-pre new file mode 100755 index 0000000..a66fb62 --- /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 -- cgit v1.2.3