]> git.etc.gen.nz Git - etc-obnam.git/commitdiff
Make sure we don't include ourselves! v0.8
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 30 Jul 2016 10:18:31 +0000 (22:18 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 30 Jul 2016 10:18:40 +0000 (22:18 +1200)
debian/changelog
molly-guard/45-obnam

index 14370e2d4b2998ba9dd97e00db790e1257a6b04c..abe0fa267c4c7ac56feaf5b260f47e5422ba78ba 100644 (file)
@@ -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 <andrew@etc.gen.nz>  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. 
 
index 2ca431b86906c7e9eb6b99127b60e1006d2efa6d..7902911d08283dd3df31772152d53fb15103523f 100755 (executable)
@@ -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;