From: Stefan Schantl Date: Sun, 8 Dec 2019 17:10:12 +0000 (+0100) Subject: geoip-functions.pl: Export variables. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b2594d8e6493079cf3a80f1d433e0b06a030fe5;p=people%2Fstevee%2Fipfire-2.x.git geoip-functions.pl: Export variables. This easily allows to use them in other perl script. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/geoip-functions.pl b/config/cfgroot/geoip-functions.pl index c8b3c5e704..7fbd5eedee 100644 --- a/config/cfgroot/geoip-functions.pl +++ b/config/cfgroot/geoip-functions.pl @@ -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.