1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/gvmd/fix-gvm-port-update-name-and-backend.patch
2019-10-21 20:01:23 +00:00

24 lines
877 B
Diff

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
}