1238c14af67fb1148f0cdcced6c77c55f29d357e
- Author
- zertrin <zrk951@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Merge pull request #134 from jrbenito/issue_sendnotification_and_email
Send notification if stale lock is detected
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 }