From 082759a9de4a23ec80b551ac5dcad4d9c3da73b4 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 30 Jul 2016 22:18:31 +1200 Subject: [PATCH] Make sure we don't include ourselves! --- debian/changelog | 8 +++++++- molly-guard/45-obnam | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 14370e2..abe0fa2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,12 @@ +etc-obnam (0.8) unstable; urgency=low + + * Make sure that we don't count molly-guard script called 45-obnam! + + -- Andrew Ruthven Sat, 30 Jul 2016 22:17:34 +1200 + etc-obnam (0.7) unstable; urgency=low - * Back IPv4 work. + * Make IPv4 work. * Include crontab files. * Specify some config files. diff --git a/molly-guard/45-obnam b/molly-guard/45-obnam index 2ca431b..7902911 100755 --- a/molly-guard/45-obnam +++ b/molly-guard/45-obnam @@ -2,7 +2,7 @@ ME=molly-guard -COUNT=$(ps ax | grep obnam | grep -v grep | wc -l) +COUNT=$(ps ax | grep obnam | grep -v "(grep|$0)" | wc -l) if [ $COUNT -eq 0 ]; then echo "I: I can't find any running obnam backups, skipping check" >&2 exit 0; -- 2.30.2