From: Andrew Ruthven Date: Sat, 30 Jul 2016 10:18:31 +0000 (+1200) Subject: Make sure we don't include ourselves! X-Git-Tag: v0.8 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=082759a9de4a23ec80b551ac5dcad4d9c3da73b4;p=etc-obnam.git Make sure we don't include ourselves! --- 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;