]> code.delx.au - monosys/commitdiff
check for backup in pgrep instead of borg to avoid false positives
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 21 Jul 2018 02:54:24 +0000 (12:54 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 21 Jul 2018 02:54:24 +0000 (12:54 +1000)
backup

diff --git a/backup b/backup
index 5cdab0d28e2d1f2a3451e94101e5fcec7109750b..f885c3afa480d38c0b72bc59147c8aef1c9ebcd5 100755 (executable)
--- a/backup
+++ b/backup
@@ -7,8 +7,8 @@ if [ "$(id -u)" -ne 0 ]; then
     exit 1
 fi
 
-if pgrep borg > /dev/null; then
-    echo "Borg is still running!"
+if pgrep backup > /dev/null; then
+    echo "Backup is still running!"
     exit 1
 fi