diff --git a/composer.json b/composer.json index 6c41d517..fd9c133b 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "shlinkio/shlink-event-dispatcher": "^4.3", "shlinkio/shlink-importer": "^5.6", "shlinkio/shlink-installer": "^9.6", - "shlinkio/shlink-ip-geolocation": "^4.3", + "shlinkio/shlink-ip-geolocation": "^4.4", "shlinkio/shlink-json": "^1.2", "spiral/roadrunner": "^2025.1", "spiral/roadrunner-cli": "^2.7", diff --git a/config/autoload/geolite2.global.php b/config/autoload/geolite2.global.php index b31cfc6d..7c9df892 100644 --- a/config/autoload/geolite2.global.php +++ b/config/autoload/geolite2.global.php @@ -8,7 +8,7 @@ return [ 'geolite2' => [ 'db_location' => __DIR__ . '/../../data/GeoLite2-City.mmdb', - 'temp_dir' => __DIR__ . '/../../data', + 'temp_dir' => __DIR__ . '/../../data/temp-geolite', 'license_key' => EnvVars::GEOLITE_LICENSE_KEY->loadFromEnv(), ], diff --git a/data/temp-geolite/.gitignore b/data/temp-geolite/.gitignore new file mode 100755 index 00000000..d6b7ef32 --- /dev/null +++ b/data/temp-geolite/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index e1acd118..aca0e98c 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -4,7 +4,7 @@ set -e cd /etc/shlink # Create data directories if they do not exist. This allows data dir to be mounted as an empty dir if needed -mkdir -p data/cache data/locks data/log data/proxies +mkdir -p data/cache data/locks data/log data/proxies data/temp-geolite flags="--no-interaction --clear-db-cache"