Update install.sh

pull/445/head
midoks 2 years ago
parent 616895785f
commit c4c20de520
  1. 18
      plugins/dynamic-tracking/install.sh

@ -35,8 +35,22 @@ Install_App()
mkdir -p $serverPath/source
mkdir -p $serverPath/dynamic-tracking
echo "开发中..."
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
HTTP_PREFIX="https://"
if [ ! -z "$cn" ];then
HTTP_PREFIX="https://ghproxy.com/"
fi
# FlameGraph start
if [ ! -d $serverPath/dynamic-tracking/FlameGraph ];then
if [ ! -f $serverPath/source/FlameGraph.zip ]; then
wget --no-check-certificate -O $serverPath/source/FlameGraph.zip ${HTTP_PREFIX}github.com/brendangregg/FlameGraph/archive/refs/heads/master.zip
fi
cd $serverPath/source && unzip $serverPath/source/FlameGraph.zip
mv $serverPath/source/FlameGraph-master $serverPath/dynamic-tracking/FlameGraph
fi
# FlameGraph end
shell_file=${curPath}/versions/${VERSION}/${OSNAME}.sh

Loading…
Cancel
Save