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

@@ -1,12 +1,13 @@
#!/bin/sh /etc/rc.common
START=92
START=99
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
USE_PROCD=1
#获取目录
DIR=$(cat /etc/profile | grep clashdir | awk -F "\"" '{print $2}')
[ -z "$DIR" ] && DIR=$(cat ~/.bashrc | grep clashdir | awk -F "\"" '{print $2}')
BINDIR=$(cat $DIR/mark | grep bindir | awk -F "=" '{print $2}')
[ -z "$BINDIR" ] && BINDIR=$DIR