Commit 830cf7690a9f1b9f222eb58637e4b02e4b50949e
1 parent
ee521e9d
Exists in
master
优化更新脚本代码
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
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="V2.2" | |
11 | +version="V2.3" | |
12 | 12 | str_ngrok_dir="/usr/local/ngrok" |
13 | 13 | |
14 | 14 | function fun_clang.cn(){ |
... | ... | @@ -426,6 +426,7 @@ function fun_update_ngrok(){ |
426 | 426 | exit 1 |
427 | 427 | fi |
428 | 428 | [ ! -x /etc/init.d/ngrokd ] && chmod 755 /etc/init.d/ngrokd |
429 | + [ -s /etc/init.d/ngrokd ] && ln -s /etc/init.d/ngrokd /usr/bin/ngrokd | |
429 | 430 | if [ "${OS}" == 'CentOS' ]; then |
430 | 431 | if [ -s /etc/init.d/ngrokd ]; then |
431 | 432 | chmod +x /etc/init.d/ngrokd | ... | ... |