v1.0.0beta17.2

~修复使用在线节点时获取配置文件报错的bug
~修复手动更新订阅界面不显示已保存链接的bug
~下载dashboard面板时,自动检测目录是否可写
This commit is contained in:
juewuy
2020-11-15 13:01:29 +08:00
parent 7e528f5b2b
commit de571b58e3
4 changed files with 34 additions and 39 deletions

View File

@@ -80,6 +80,8 @@ getconfig(){
sed -i "1i\userguide=1" $ccfg
[ "$res" = 1 ] && source $clashdir/getdate.sh && userguide
fi
#检查执行权限
[ ! -x $clashdir/start.sh ] && chmod +x $clashdir/start.sh
}
setconfig(){
#参数1代表变量名参数2代表变量值,参数3即文件路径
@@ -95,9 +97,9 @@ errornum(){
startover(){
echo -e "\033[32mclash服务已启动\033[0m"
if [ -n "$hostdir" ];then
echo -e "请使用\033[4;32mhttp://$host$hostdir\033[0m管理内置规则"
echo -e "请使用 \033[4;32mhttp://$host$hostdir\033[0m 管理内置规则"
else
echo -e "可使用\033[4;32mhttp://clash.razord.top\033[0m管理内置规则"
echo -e "可使用 \033[4;32mhttp://clash.razord.top\033[0m 管理内置规则"
echo -e "Host地址:\033[36m $host \033[0m 端口:\033[36m $db_port \033[0m"
echo -e "推荐前往更新菜单安装本地Dashboard面板连接更稳定\033[0m"
fi