4f96d724b375f590b08fd814dde57fc16bd71de2

Author
Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
Committer
Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
Date

Message

Send notification if stale lock is detected

add send notification along with e-mail notification on stale lock
check.

Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index ff262af03e5bea5f6a4a8b5c44d8380c3c18cbd9..a1a72fa9845c0e2c5a886c5749223ec4f04c9aa1 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -439,6 +439,7 @@ get_lock()
 6       echo "lock failed, could not acquire ${LOCKFILE}" | tee -a "${LOGFILE}" >&2
 7       echo "lock held by $(cat "${LOCKFILE}")" | tee -a "${LOGFILE}" >&2
 8       email_logfile
 9+      send_notification
10       exit 2
11   fi
12 }