summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/files/base/etckeeper_post_command.sh
blob: ec10155034fce7ffb9e19b7f752d8e574bb18673 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
set -e

if etckeeper unclean; then
	if ! etckeeper commit "saving uncommitted changes in /etc after puppet run"; then
		echo "warning: etckeeper failed to commit changes in /etc using $VCS" >&2
	fi
fi