Skip to content

Commit

Permalink
Fix: greenbone-nvt-sync: set feed version to 22.04 (#1415)
Browse files Browse the repository at this point in the history
Updates the Greenbone NVT Sync script to use a fixed feed version
(22.04) instead of linking it to the OpenVAS version. This ensures
consistent behavior and compatibility across different OpenVAS versions.
  • Loading branch information
nichtsfrei committed May 4, 2023
1 parent 1263b30 commit eeda955
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/greenbone-nvt-sync.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

# This script updates the local Network Vulnerability Tests (NVTs) from the
# Greenbone Security Feed (GSF) or the Greenbone Community Feed (GCF).
# Greenbone Security Feed (GSF) or the Greenbone Community Feed (GCF).

VERSION=@OPENVAS_VERSION@

VERSION_MAYOR=`echo $VERSION | cut -d. -f1`
VERSION_MINOR=`echo $VERSION | cut -d. -f2`
[ $VERSION_MINOR -lt 10 ] && VERSION_MINOR="0$VERSION_MINOR"
VERSION_SHORT="$VERSION_MAYOR.$VERSION_MINOR"
# The feed version is not linked to the openvas version anymore.
VERSION_SHORT="22.04"

# SETTINGS
# ========
Expand Down

0 comments on commit eeda955

Please sign in to comment.