From 772f14f080152868e6c66bf756e7e050db468459 Mon Sep 17 00:00:00 2001 From: Toyo Date: Fri, 19 May 2017 14:28:07 +0800 Subject: [PATCH] =?UTF-8?q?#=20v1.0.1=20=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=AE=89=E8=A3=85=E5=90=8E=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BA=BA=E7=89=A9=E8=84=9A=E6=9C=AC=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E8=AF=86=E5=88=AB=E9=94=99=E8=AF=AF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ssrstatus.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ssrstatus.sh b/ssrstatus.sh index 55ec1be..e516604 100644 --- a/ssrstatus.sh +++ b/ssrstatus.sh @@ -5,11 +5,11 @@ export PATH #================================================= # System Required: CentOS 6+/Debian 7+/Ubuntu 14.04+ # Description: ShadowsocksR Status -# Version: 1.0.0 +# Version: 1.0.1 # Author: Toyo #================================================= -sh_ver="1.0.0" +sh_ver="1.0.1" Timeout="10" Test_URL="https://github.com" Web_file="/usr/local/SSRStatus" @@ -732,7 +732,7 @@ Install_Web(){ Download_SSRStatus echo -e "${Info} 开始配置定时任务..." Set_crontab - echo -e "${Info} 所有步骤 安装完毕..." + echo -e "${Info} 所有步骤 安装完毕... 请打开本脚本并修改开头的 SSR_folder 变量引号内的ShadowsocksR子目录绝对路径,方可使用。" } Uninstall_Web(){ check_installed_server_status @@ -750,11 +750,11 @@ Uninstall_Web(){ fi } Add_Crontab(){ - crontab -l > "$PWD/crontab.bak" - sed -i "/ssrstatus.sh/d" "$PWD/crontab.bak" - echo -e "\n${Crontab_time} /bin/bash $PWD/ssrstatus.sh t" >> "$PWD/crontab.bak" - crontab "$PWD/crontab.bak" - rm -r "$PWD/crontab.bak" + crontab -l > "$file/crontab.bak" + sed -i "/ssrstatus.sh/d" "$file/crontab.bak" + echo -e "\n${Crontab_time} /bin/bash $file/ssrstatus.sh t" >> "$file/crontab.bak" + crontab "$file/crontab.bak" + rm -r "$file/crontab.bak" cron_config=$(crontab -l | grep "ssrstatus.sh") if [[ -z ${cron_config} ]]; then echo -e "${Error} 添加 Crontab 定时任务失败 !" && exit 1