Skip to content
Snippets Groups Projects
etckeeper-commit-pre 256 B
Newer Older
  • Learn to ignore specific revisions
  • schiermi's avatar
    schiermi committed
    #!/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