diff options
author | Jonas Licht <jonas.licht@fem.tu-ilmenau.de> | 2021-03-18 23:00:38 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-22 15:33:54 +0200 |
commit | 1a2bfc6229dc6bfb181c7e580ff9746f3890ffd2 (patch) | |
tree | a5aca39b06faea749dc9e1b5cba614aae47c63a7 /net-analyzer/openvas-scanner/files | |
parent | net-analyzer/gvmd: version bump to 20.8.1 (diff) | |
download | gentoo-1a2bfc6229dc6bfb181c7e580ff9746f3890ffd2.tar.gz gentoo-1a2bfc6229dc6bfb181c7e580ff9746f3890ffd2.tar.bz2 gentoo-1a2bfc6229dc6bfb181c7e580ff9746f3890ffd2.zip |
net-analyzer/openvas-scanner: version bump to 20.8.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-analyzer/openvas-scanner/files')
-rw-r--r-- | net-analyzer/openvas-scanner/files/gvm-feed-sync-20.8.1.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/openvas-scanner/files/gvm-feed-sync-20.8.1.sh b/net-analyzer/openvas-scanner/files/gvm-feed-sync-20.8.1.sh new file mode 100644 index 000000000000..178f49eb0493 --- /dev/null +++ b/net-analyzer/openvas-scanner/files/gvm-feed-sync-20.8.1.sh @@ -0,0 +1,45 @@ +#!/bin/sh +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# GVM cron script that updates feed. + +# Start to update FEED & First NVT. +try=0 +until [ $try -ge 5 ]; do + greenbone-feed-sync --type GVMD_DATA --curl &>/dev/null && break + try=$[$try+1] + sleep 30 +done + +# Check status +if [ $? -eq 0 ]; then + # Avoid your IP temporary banned because of multiple connection + sleep 5 + # Try to update scapdata. + try=0 + until [ $try -ge 5 ]; do + greenbone-feed-sync --type SCAP &>/dev/null && break + try=$[$try+1] + sleep 30 + done + + # Check status + if [ $? -eq 0 ]; then + # Avoid your IP temporary banned because of multiple connection + sleep 5 + # Try to update certdata + try=0 + until [ $try -ge 5 ]; do + greenbone-feed-sync --type CERT &>/dev/null && break + try=$[$try+1] + sleep 30 + done + + # Check status + if [ $? -eq 0 ]; then + exit 0 + else + exit 1 + fi + fi +fi |