Add 'date' argument for geoip_updater.sh

This commit is contained in:
Reza Behzadan 2024-02-06 07:46:31 +03:30
parent 0986e3bebb
commit c458033f82

View File

@ -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}"