diff --git a/configuration/etckeeper_notifier.sh b/configuration/etckeeper_notifier.sh index 45712ef88a082b8b2907a980a8e2398e50b92756..b473ab5701a084a0b545868dfb62ada962cddacf 100755 --- a/configuration/etckeeper_notifier.sh +++ b/configuration/etckeeper_notifier.sh @@ -119,7 +119,7 @@ if [[ ! -f $etckeeper ]]; then exit 2 fi -if "$etckeeper" -d "$directory"; then +if "$etckeeper" unclean -d "$directory"; then mail -s "Uncommited changes on '$(hostname -f)' in '$directory'" $notificationRecipients <<EOF Uncommitted changes have been detected on server $(hostname -f) in directory: