feat: check logs folder integrity

This commit is contained in:
NekoRectifier 2023-12-12 18:18:56 +08:00
parent 7d98b081a7
commit 226b847397
2 changed files with 5 additions and 7 deletions

View File

@ -8,7 +8,4 @@ if [ $PID_NUM -ne 0 ]; then
# ps -ef | grep [c]lash-linux-a | awk '{print $2}' | xargs kill -9 # ps -ef | grep [c]lash-linux-a | awk '{print $2}' | xargs kill -9
fi fi
# 清除环境变量
> /etc/profile.d/clash.sh
echo -e "\n服务关闭成功请执行以下命令关闭系统代理proxy_off\n" echo -e "\n服务关闭成功请执行以下命令关闭系统代理proxy_off\n"

View File

@ -16,8 +16,6 @@ chmod +x $Server_Dir/bin/*
chmod +x $Server_Dir/scripts/* chmod +x $Server_Dir/scripts/*
chmod +x $Server_Dir/tools/subconverter/subconverter chmod +x $Server_Dir/tools/subconverter/subconverter
#################### 变量设置 #################### #################### 变量设置 ####################
Conf_Dir="$Server_Dir/conf" Conf_Dir="$Server_Dir/conf"
@ -94,8 +92,11 @@ unset HTTPS_PROXY
unset NO_PROXY unset NO_PROXY
# create logs folder # create logs folder
if [ -d $Server_Dir"/logs" ]; then
echo "logs folder exists."
else
mkdir logs mkdir logs
fi
## Clash 订阅地址检测及配置文件下载 ## Clash 订阅地址检测及配置文件下载
# 检查url是否有效 # 检查url是否有效