blob: b10f52c12a861ee8a56f0e72a9c28e4392ab3c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}
|