From baee71e4b83d8d27cd87f7c682075bde1afb83dc Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 15 Oct 2021 11:21:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0requirements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements/lfs_requirements.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 requirements/lfs_requirements.sh diff --git a/requirements/lfs_requirements.sh b/requirements/lfs_requirements.sh new file mode 100644 index 000000000..f460164f4 --- /dev/null +++ b/requirements/lfs_requirements.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# +BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +PROJECT_DIR=$(dirname "$BASE_DIR") + + +echo "下载 IP 数据库" +ip_db_path="${PROJECT_DIR}/apps/common/utils/geoip/GeoLite2-City.mmdb" +wget "https://download.jumpserver.org/files/GeoLite2-City.mmdb" -O "${ip_db_path}"