File: etckeeper-commit-pre

package info (click to toggle)
puppet 3.7.2-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 18,912 kB
  • ctags: 13,168
  • sloc: ruby: 210,410; sh: 2,050; xml: 1,554; lisp: 300; makefile: 142; python: 108; sql: 103; yacc: 72
file content (10 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
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