File: gvm-feed-update

package info (click to toggle)
gvm 25.04.0
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 108 kB
  • sloc: sh: 625; makefile: 2
file content (23 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

GREEN="\033[01;32m"
RESET="\033[00m"

# Check if running as root
#if [[ $EUID -ne 0 ]]; then
#   echo -e "${RED}[-]${RESET} Error: $0 must be run as root" 1>&2
#   exit 1
#fi

echo -e "${GREEN}[>]${RESET} This script is now deprecated"
echo -e "${GREEN}[>]${RESET} Please use 'sudo greenbone-feed-sync' instead"

#echo -e "${GREEN}[>]${RESET} Updating Vulnerability Tests info into Redis store from VT files"
#upload plugins in redis with openvas
#systemctl start redis-server@openvas.service
#runuser -u _gvm -- openvas -u

#echo -e "${GREEN}[*]${RESET} Updating all feeds"
#runuser -u _gvm -- greenbone-feed-sync

#echo -e "\n${GREEN}[+]${RESET} GVM feeds updated"