From ee406aac7d245686484330f409e973f68c7d6700 2020-06-29 04:17:04 From: Branko Majic <branko@majic.rs> Date: 2020-06-29 04:17:04 Subject: [PATCH] Fixed the etckeeper command call. --- 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: