v1.0.0beta15.6
~Redir模式增加基于tproxy的udp代理 ~增加自动生成pac逻辑 ~增加Gnome以及KDE桌面的自动设置本机代理功能 ~修复各种更新检测失败的bug ~修复关闭时报错的bug ~修复安装时同时下载多次的bug ~修复新手引导报错的bug
This commit is contained in:
@@ -153,7 +153,6 @@ echo 目标目录磁盘剩余:$(df -h $dir | awk '{print $4}' | sed 1d )
|
|||||||
read -p "确认安装?(1/0) > " res
|
read -p "确认安装?(1/0) > " res
|
||||||
[ "$res" != "1" ] && setdir
|
[ "$res" != "1" ] && setdir
|
||||||
clashdir=$dir/clash
|
clashdir=$dir/clash
|
||||||
install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#输出
|
#输出
|
||||||
@@ -175,9 +174,11 @@ if [ -n "$clashdir" ];then
|
|||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
$echo "\033[31m 旧版本文件已卸载!\033[0m"
|
$echo "\033[31m 旧版本文件已卸载!\033[0m"
|
||||||
setdir
|
setdir
|
||||||
|
install
|
||||||
elif [ "$res" = "9" ];then
|
elif [ "$res" = "9" ];then
|
||||||
echo 测试模式,变更安装位置
|
echo 测试模式,变更安装位置
|
||||||
setdir
|
setdir
|
||||||
|
install
|
||||||
else
|
else
|
||||||
$echo "\033[31m输入错误!已取消安装!\033[0m"
|
$echo "\033[31m输入错误!已取消安装!\033[0m"
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -681,7 +681,8 @@ getdb(){
|
|||||||
sed -i "s/127.0.0.1/${host}/g" $dbdir/app*.js
|
sed -i "s/127.0.0.1/${host}/g" $dbdir/app*.js
|
||||||
sed -i "s/7892/${db_port}/g" $dbdir/app*.js
|
sed -i "s/7892/${db_port}/g" $dbdir/app*.js
|
||||||
fi
|
fi
|
||||||
[ "$dbdir" != "/www/clash" ] && $clashdir/start.sh restart
|
#如果clash在运行则重启clash服务
|
||||||
|
[ "$dbdir" != "/www/clash" ] && [ -n "$PID" ] && $clashdir/start.sh restart
|
||||||
#写入配置文件
|
#写入配置文件
|
||||||
sed -i '/hostdir*/'d $ccfg
|
sed -i '/hostdir*/'d $ccfg
|
||||||
sed -i "1i\hostdir=\'$hostdir\'" $ccfg
|
sed -i "1i\hostdir=\'$hostdir\'" $ccfg
|
||||||
|
|||||||
Reference in New Issue
Block a user