mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2025-05-06 20:14:44 +08:00
feat: check logs folder integrity
This commit is contained in:
parent
7d98b081a7
commit
226b847397
|
@ -8,7 +8,4 @@ if [ $PID_NUM -ne 0 ]; then
|
|||
# ps -ef | grep [c]lash-linux-a | awk '{print $2}' | xargs kill -9
|
||||
fi
|
||||
|
||||
# 清除环境变量
|
||||
> /etc/profile.d/clash.sh
|
||||
|
||||
echo -e "\n服务关闭成功,请执行以下命令关闭系统代理:proxy_off\n"
|
||||
|
|
7
start.sh
7
start.sh
|
@ -16,8 +16,6 @@ chmod +x $Server_Dir/bin/*
|
|||
chmod +x $Server_Dir/scripts/*
|
||||
chmod +x $Server_Dir/tools/subconverter/subconverter
|
||||
|
||||
|
||||
|
||||
#################### 变量设置 ####################
|
||||
|
||||
Conf_Dir="$Server_Dir/conf"
|
||||
|
@ -94,8 +92,11 @@ unset HTTPS_PROXY
|
|||
unset NO_PROXY
|
||||
|
||||
# create logs folder
|
||||
if [ -d $Server_Dir"/logs" ]; then
|
||||
echo "logs folder exists."
|
||||
else
|
||||
mkdir logs
|
||||
|
||||
fi
|
||||
|
||||
## Clash 订阅地址检测及配置文件下载
|
||||
# 检查url是否有效
|
||||
|
|
Loading…
Reference in New Issue
Block a user