更新文件名

This commit is contained in:
CallMeR
2023-12-09 01:32:16 +08:00
parent ba0afba7eb
commit d052923897
2 changed files with 15 additions and 3 deletions
@@ -1,8 +1,8 @@
## 下载 dnsmasq 插件安装脚本 ## 下载 dnsmasq 插件安装脚本
$ sudo wget https://gitee.com/felixonmars/dnsmasq-china-list/raw/master/install.sh -O /opt/install.sh $ sudo wget https://gitee.com/felixonmars/dnsmasq-china-list/raw/master/install.sh -O /opt/dnsmasq_plugin.sh
## 设置安装脚本权限 ## 设置安装脚本权限
$ sudo chmod +x /opt/install.sh $ sudo chmod +x /opt/dnsmasq_plugin.sh
## 设置 crontab ## 设置 crontab
@@ -12,5 +12,5 @@ $ sudo chmod +x /opt/install.sh
25 5 * * * /usr/bin/systemctl restart smartdns.service 25 5 * * * /usr/bin/systemctl restart smartdns.service
30 5 * * * /usr/bin/bash /opt/install.sh 30 5 * * * /usr/bin/bash /opt/dnsmasq_plugin.sh
+12
View File
@@ -0,0 +1,12 @@
## 下载 dnsmasq 插件安装脚本
$ sudo wget https://gitee.com/callmer/pve_toss_notes/raw/master/src/debian/debian_dns_smartdns_plugin.conf -O /opt/smartdns_plugin.sh
## 设置安装脚本权限
$ sudo chmod +x /opt/smartdns_plugin.sh
## 设置 crontab
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf
20 5 * * * /usr/bin/bash /opt/smartdns_plugin.sh