mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
488 B
14 lines
488 B
3 years ago
|
#!/bin/bash
|
||
|
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||
|
PROJECT_DIR=$(dirname "$BASE_DIR")
|
||
|
|
||
3 years ago
|
echo "1. 安装依赖"
|
||
|
brew install libtiff libjpeg webp little-cms2 openssl gettext git git-lfs mysql libxml2 libxmlsec1 pkg-config
|
||
3 years ago
|
|
||
3 years ago
|
echo "2. 下载 IP 数据库"
|
||
3 years ago
|
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}"
|
||
3 years ago
|
|
||
|
echo "3. 安装依赖的插件"
|
||
|
git lfs install
|