Commit 3a895b3b3f422e1f9c64d63a96032936a8f48044

Authored by clangcn
1 parent a8f0da79
Exists in master

fixed^Curl command not found

Showing 2 changed files with 5 additions and 3 deletions   Show diff stats
Changelog
1 1 Ngrok 一键安装脚本(非编译) Changelog
2 2 ===========================================
  3 +4.4 [2017-03-18]
  4 + + Fix 修复缺少curl提示
3 5 4.3 [2017-03-18]
4 6 + Modify 修改用户配置文件路径到程序安装目录
5 7 3.0 [2016-07-28 00:14]
... ...
install_ngrok.sh
... ... @@ -8,7 +8,7 @@
8 8 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
9 9 export PATH
10 10 shell_run_start=`date "+%Y-%m-%d %H:%M:%S"` #shell run start time
11   -version="4.3"
  11 +version="4.4"
12 12 program_download_url=https://raw.githubusercontent.com/clangcn/ngrok-one-key-install/master/latest/
13 13 x64_file=server_ngrokd_linux_amd64
14 14 x86_file=server_ngrokd_linux_386
... ... @@ -256,10 +256,10 @@ function pre_install(){
256 256 echo "============== Install packs =============="
257 257 if [ "${OS}" == 'CentOS' ]; then
258 258 #yum -y update
259   - yum -y install net-tools openssl-devel psmisc wget vim
  259 + yum -y install net-tools openssl-devel psmisc wget vim curl curl-devel
260 260 else
261 261 apt-get update -y
262   - apt-get install -y wget build-essential mercurial vim psmisc openssl libcurl4-openssl-dev net-tools
  262 + apt-get install -y wget build-essential mercurial curl vim psmisc openssl libcurl4-openssl-dev net-tools
263 263 fi
264 264 [ ! -d ${str_ngrok_dir}/bin/ ] && mkdir -p ${str_ngrok_dir}/bin/
265 265 cd ${str_ngrok_dir}
... ...