]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
geoip-functions.pl: Export variables.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 8 Dec 2019 17:10:12 +0000 (18:10 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 8 Dec 2019 17:10:12 +0000 (18:10 +0100)
This easily allows to use them in other perl script.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/geoip-functions.pl

index c8b3c5e7046b5f1dcab48d27ffd5a92d6c1679d7..7fbd5eedee3ef9944ff5d6d443b5a656d5955b1b 100644 (file)
@@ -41,13 +41,16 @@ my %not_iso_3166_location = (
 );
 
 # Directory where the libloc database and keyfile lives.
-my $location_dir = "/usr/share/location/";
+our $location_dir = "/usr/share/location/";
 
 # Libloc database file.
-my $database = "$location_dir/database.db";
+our $database = "$location_dir/database.db";
 
 # Libloc keyfile to verify the database.
-my $keyfile = "$location_dir/signing-key.pem";
+our $keyfile = "$location_dir/signing-key.pem";
+
+# Directory which contains the exported databases.
+our $xt_geoip_db_directory = "/usr/share/xt_geoip/";
 
 #
 ## Tiny function to init the location database.