Commit 8204ec12f69008a90c97433221811162684d8015
Committed by
GitHub
1 parent
9f93d2ae
Exists in
master
Update install_ngrok.sh
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
install_ngrok.sh
@@ -475,11 +475,11 @@ function fun_update_ngrok(){ | @@ -475,11 +475,11 @@ function fun_update_ngrok(){ | ||
475 | exit 1 | 475 | exit 1 |
476 | else | 476 | else |
477 | echo -e "${COLOR_GREEN}/etc/init.d/ngrokd Update successfully !!!${COLOR_END}" | 477 | echo -e "${COLOR_GREEN}/etc/init.d/ngrokd Update successfully !!!${COLOR_END}" |
478 | - [ ! -x /etc/init.d/ngrokd ] && chmod 755 /etc/init.d/ngrokd | ||
479 | - [ -s /etc/init.d/ngrokd ] && ln -s /etc/init.d/ngrokd /usr/bin/ngrokd | ||
480 | fi | 478 | fi |
481 | fi | 479 | fi |
482 | fi | 480 | fi |
481 | + [ ! -x /etc/init.d/ngrokd ] && chmod 755 /etc/init.d/ngrokd | ||
482 | + [ -s /etc/init.d/ngrokd ] && ln -s /etc/init.d/ngrokd /usr/bin/ngrokd | ||
483 | [ ! -d ${str_ngrok_dir}/bin/ ] && mkdir -p ${str_ngrok_dir}/bin/ | 483 | [ ! -d ${str_ngrok_dir}/bin/ ] && mkdir -p ${str_ngrok_dir}/bin/ |
484 | ps -ef | grep -v grep | grep -i "${str_ngrok_dir}/bin/ngrokd" > /dev/null 2>&1 | 484 | ps -ef | grep -v grep | grep -i "${str_ngrok_dir}/bin/ngrokd" > /dev/null 2>&1 |
485 | if [ $? -eq 0 ]; then | 485 | if [ $? -eq 0 ]; then |