[01/12] location-functions.pl: Rename and set the location for exported databases to "/var/lib/location/ipset/".

Message ID 20220214184257.2406-1-stefan.schantl@ipfire.org
State Accepted
Commit a5f22bf03cebf33f78bd4ebd1686f8f506789fb9
Headers
Series [01/12] location-functions.pl: Rename and set the location for exported databases to "/var/lib/location/ipset/". |

Commit Message

Stefan Schantl Feb. 14, 2022, 6:42 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 config/cfgroot/location-functions.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Peter Müller Feb. 14, 2022, 9:01 p.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
>  config/cfgroot/location-functions.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/cfgroot/location-functions.pl b/config/cfgroot/location-functions.pl
> index 4d44ce24d..f86464933 100644
> --- a/config/cfgroot/location-functions.pl
> +++ b/config/cfgroot/location-functions.pl
> @@ -53,7 +53,7 @@ our $database = "$location_dir/database.db";
>  our $keyfile = "$location_dir/signing-key.pem";
>  
>  # Directory which contains the exported databases.
> -our $xt_geoip_db_directory = "/usr/share/xt_geoip/";
> +our $ipset_db_directory = "$location_dir/ipset";
>  
>  # Create libloc database handle.
>  my $db_handle = &init();
  

Patch

diff --git a/config/cfgroot/location-functions.pl b/config/cfgroot/location-functions.pl
index 4d44ce24d..f86464933 100644
--- a/config/cfgroot/location-functions.pl
+++ b/config/cfgroot/location-functions.pl
@@ -53,7 +53,7 @@  our $database = "$location_dir/database.db";
 our $keyfile = "$location_dir/signing-key.pem";
 
 # Directory which contains the exported databases.
-our $xt_geoip_db_directory = "/usr/share/xt_geoip/";
+our $ipset_db_directory = "$location_dir/ipset";
 
 # Create libloc database handle.
 my $db_handle = &init();