]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 13 Aug 2023 18:20:11 +0000 (20:20 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 13 Aug 2023 18:20:11 +0000 (20:20 +0200)
- also re-check 'GENERATOR' detection mode

recheck.sh

index b1627e99a28575a89e8fb50bf7ba4d2aa6a9485c..143d3b2e2a4c4de15b60130ed3d1b0bdc522bd66 100755 (executable)
@@ -3,7 +3,7 @@
 MODE=""
 if [ "$1" = "--help" ]
 then
-       echo "Usage: $ [file|--software|--software2|--nodeinfo|--detection|--no-auto|--timeout]"
+       echo "Usage: $ [file|--software|--software2|--nodeinfo|--generator|--detection|--no-auto|--timeout]"
        exit 255
 elif [ -n "$1" -a -f "$1" ]
 then
@@ -32,7 +32,11 @@ then
 elif [ "$1" = "--software2" ]
 then
        DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NOT NULL AND detection_mode IS NULL ORDER BY last_updated ASC;")
-       MODE="software"
+       MODE="software2"
+elif [ "$1" = "--generator" ]
+then
+       DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE detection_mode='GENERATOR' ORDER BY last_updated ASC;")
+       MODE="software2"
 else
        DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;")
 fi