diff options
Diffstat (limited to 'community/gvmd/fix-gvm-port-update-name-and-backend.patch')
-rw-r--r-- | community/gvmd/fix-gvm-port-update-name-and-backend.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/gvmd/fix-gvm-port-update-name-and-backend.patch b/community/gvmd/fix-gvm-port-update-name-and-backend.patch new file mode 100644 index 0000000000..b10f52c12a --- /dev/null +++ b/community/gvmd/fix-gvm-port-update-name-and-backend.patch @@ -0,0 +1,24 @@ +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 + } |