Update start.sh
对配置文件转换添加限制,只对x86_64 架构的服务器进行转换。
This commit is contained in:
parent
03667c2e55
commit
71e8d7b502
12
start.sh
12
start.sh
|
@ -135,10 +135,14 @@ if_success $Text3 $Text4 $ReturnStatus
|
||||||
\cp -a $Temp_Dir/clash.yaml $Temp_Dir/clash_config.yaml
|
\cp -a $Temp_Dir/clash.yaml $Temp_Dir/clash_config.yaml
|
||||||
|
|
||||||
|
|
||||||
## 判断订阅内容是否符合clash配置文件标准,尝试转换
|
## 判断订阅内容是否符合clash配置文件标准,尝试转换(当前只支持对 x86_64 架构的服务器做处理)
|
||||||
echo -e '\n判断订阅内容是否符合clash配置文件标准:'
|
if [[ $CpuArch =~ "x86_64" || $CpuArch =~ "amd64" ]]; then
|
||||||
bash $Server_Dir/scripts/clash_profile_conversion.sh
|
echo -e '\n判断订阅内容是否符合clash配置文件标准:'
|
||||||
sleep 3
|
bash $Server_Dir/scripts/clash_profile_conversion.sh
|
||||||
|
sleep 3
|
||||||
|
else
|
||||||
|
echo -e '\n当前不支持对 x86_64 以外的CPU架构服务器进行clash配置文件检测和转换!!!'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
## Clash 配置文件重新格式化及配置
|
## Clash 配置文件重新格式化及配置
|
||||||
|
|
Loading…
Reference in New Issue
Block a user