etckeeper-commit-pre 256 B

12345678910
  1. #!/bin/sh
  2. PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  3. which etckeeper > /dev/null 2>&1 || exit 0
  4. etckeeper commit "saving uncommitted changes in /etc prior to puppet catalog run"
  5. # Failure of etckeeper should not be fatal.
  6. exit 0