diff --git a/tools/gvm-portnames-update.in b/tools/gvm-portnames-update.in index ab49349..4d71471 100644 --- a/tools/gvm-portnames-update.in +++ b/tools/gvm-portnames-update.in @@ -20,9 +20,7 @@ # Update Port Names data. POSTGRES=0 -if [ "@BACKEND@" = "POSTGRESQL" ]; then - POSTGRES=1 -fi +psql -d gvmd -c '\q' && POSTGRES=1; do_help () { echo "Update port names data from a port names XML file."; @@ -31,7 +29,7 @@ do_help () { echo "In order to update the DB, download the port names list and"; echo "provide its path as an argument to this script."; echo " $ wget http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml"; - echo " $ openvas-portnames-update service-names-port-numbers.xml"; + echo " $ gvm-portnames-update service-names-port-numbers.xml"; echo " $ rm service-names-port-numbers.xml"; exit 0 }