I was able to successfully run the script with versions:
Bash: GNU bash, version 4.4.19(1)-release
Wget: GNU Wget 1.19.4
Curl: curl 7.58.0 Working on it when I can
| # Test Internet Connection | |
| ping -c 1 google.com > /dev/null | |
| if [ "$?" != 0 ] | |
| then | |
| echo [*] [Internet Connection]: FAILED...; | |
| echo [x] [warning]:This Script Needs An Active Internet Connection; | |
| sleep 3 |
| ## Installation script for OpenVAS/Greenbone 20.08 on Ubuntu 20.08 | |
| ## Tested for PatrowlEngines | |
| ## See https://patrowl.io | |
| ## Based on: | |
| # https://kifarunix.com/install-and-setup-gvm-11-on-ubuntu-20-04/#create-gvm-service-unit-file | |
| # https://github.com/yu210148/gvm_install/blob/master/install_gvm.sh | |
| apt-get update && apt-get upgrade | |
| useradd -r -d /opt/gvm -c "GVM User" -s /bin/bash gvm | |
| mkdir /opt/gvm |