From 905e1dd73ce46420f6ee44369f2df9642891620a Mon Sep 17 00:00:00 2001 From: Toyo Date: Thu, 10 Aug 2017 09:58:46 +0800 Subject: [PATCH] Add files via upload --- ssr.sh | 5 +++-- ssrmu.sh | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ssr.sh b/ssr.sh index b023b464..77108247 100644 --- a/ssr.sh +++ b/ssr.sh @@ -5,12 +5,12 @@ export PATH #================================================= # System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+ # Description: Install the ShadowsocksR server -# Version: 2.0.26 +# Version: 2.0.27 # Author: Toyo # Blog: https://doub.io/ss-jc42/ #================================================= -sh_ver="2.0.26" +sh_ver="2.0.27" filepath=$(cd "$(dirname "$0")"; pwd) file=$(echo -e "${filepath}"|awk -F "$0" '{print $1}') ssr_folder="/usr/local/shadowsocksr" @@ -68,6 +68,7 @@ LotServer_installation_status(){ BBR_installation_status(){ if [[ ! -e ${BBR_file} ]]; then echo -e "${Error} 没有发现 BBR脚本,开始下载..." + cd "${file}" if ! wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/bbr.sh; then echo -e "${Error} BBR 脚本下载失败 !" && exit 1 else diff --git a/ssrmu.sh b/ssrmu.sh index b5d13581..ad2cdc2a 100644 --- a/ssrmu.sh +++ b/ssrmu.sh @@ -5,12 +5,12 @@ export PATH #================================================= # System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+ # Description: Install the ShadowsocksR mudbjson server -# Version: 1.0.1 +# Version: 1.0.2 # Author: Toyo # Blog: https://doub.io/ss-jc60/ #================================================= -sh_ver="1.0.1" +sh_ver="1.0.2" filepath=$(cd "$(dirname "$0")"; pwd) file=$(echo -e "${filepath}"|awk -F "$0" '{print $1}') ssr_folder="/usr/local/shadowsocksr" @@ -71,6 +71,7 @@ LotServer_installation_status(){ BBR_installation_status(){ if [[ ! -e ${BBR_file} ]]; then echo -e "${Error} 没有发现 BBR脚本,开始下载..." + cd "${file}" if ! wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/bbr.sh; then echo -e "${Error} BBR 脚本下载失败 !" && exit 1 else @@ -1515,6 +1516,7 @@ Update_Shell(){ stty erase '^H' && read -p "(默认: y):" yn [[ -z "${yn}" ]] && yn="y" if [[ ${yn} == [Yy] ]]; then + cd "${file}" if [[ $sh_new_type == "softs" ]]; then wget -N --no-check-certificate https://softs.fun/Bash/ssrmu.sh && chmod +x ssrmu.sh else