From c458033f828ed7d79088c676c236153a6e7db118 Mon Sep 17 00:00:00 2001 From: Reza Behzadan Date: Tue, 6 Feb 2024 07:46:31 +0330 Subject: [PATCH] Add 'date' argument for geoip_updater.sh --- geoip_updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoip_updater.sh b/geoip_updater.sh index 0e4f990..9befc8e 100755 --- a/geoip_updater.sh +++ b/geoip_updater.sh @@ -13,7 +13,7 @@ set -e # Define variables -DATE=$(date -I) +DATE=${1:-$(date -I)} DEST_DIR="/usr/local/share/GeoIP" FN="GeoLite2-City-${DATE//-/}.tar.gz" URL="https://github.com/merkez/maxmind-databases/releases/download/${DATE}/${FN}"