summaryrefslogtreecommitdiff
path: root/etckeeper-commit-post
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-12-20 12:39:15 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-12-20 12:39:15 +0100
commitf56d2d7888be1a27d7ef05d850afdc4e9dbb464a (patch)
treee193c75cbdb40c5290906d97b3ac8966a1099a47 /etckeeper-commit-post
downloadpuppet.SGM-f56d2d7888be1a27d7ef05d850afdc4e9dbb464a.tar.gz
puppet.SGM-f56d2d7888be1a27d7ef05d850afdc4e9dbb464a.tar.bz2
puppet.SGM-f56d2d7888be1a27d7ef05d850afdc4e9dbb464a.zip
initial draft of a minimal puppet config template
Diffstat (limited to 'etckeeper-commit-post')
-rwxr-xr-xetckeeper-commit-post10
1 files changed, 10 insertions, 0 deletions
diff --git a/etckeeper-commit-post b/etckeeper-commit-post
new file mode 100755
index 0000000..489b2bd
--- /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