#!/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"
