Archived
优化 SmartDNS 插件脚本兼容性
This commit is contained in:
+2
-2
@@ -270,7 +270,7 @@ $ sudo chmod +x /usr/local/bin/smartdns-plugin.sh
|
||||
$ sudo chattr +i /usr/local/bin/smartdns-plugin.sh
|
||||
|
||||
## 执行脚本
|
||||
$ sudo bash /usr/local/bin/smartdns-plugin.sh
|
||||
$ sudo /usr/local/bin/smartdns-plugin.sh
|
||||
```
|
||||
|
||||
### 6.2.定时任务
|
||||
@@ -300,7 +300,7 @@ $ sudo crontab -e
|
||||
|
||||
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
|
||||
30 9 * * * /usr/bin/bash /usr/local/bin/smartdns-plugin.sh
|
||||
30 9 * * * /usr/local/bin/smartdns-plugin.sh
|
||||
```
|
||||
|
||||
### 6.3. SmartDNS 主配置
|
||||
|
||||
Reference in New Issue
Block a user