mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-16 03:54:28 +05:00
@@ -79,7 +79,7 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/crontabs/root
|
path: /etc/crontabs/root
|
||||||
create: yes
|
create: yes
|
||||||
line: "0 4 * * * /etc/init.d/hirkn"
|
line: "0 4 * * * /etc/init.d/hirkn reload"
|
||||||
when: check_cron.stdout == ""
|
when: check_cron.stdout == ""
|
||||||
|
|
||||||
- name: enable and start crontab
|
- name: enable and start crontab
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
START=99
|
START=99
|
||||||
|
|
||||||
|
script () {
|
||||||
dir=/tmp/lst
|
dir=/tmp/lst
|
||||||
SUBNET=https://antifilter.download/list/subnet.lst
|
SUBNET=https://antifilter.download/list/subnet.lst
|
||||||
IP=https://antifilter.download/list/ip.lst
|
IP=https://antifilter.download/list/ip.lst
|
||||||
@@ -98,3 +99,16 @@ echo "Dnsmasq restart"
|
|||||||
|
|
||||||
echo "Firewall restart"
|
echo "Firewall restart"
|
||||||
/etc/init.d/firewall restart
|
/etc/init.d/firewall restart
|
||||||
|
}
|
||||||
|
|
||||||
|
start () {
|
||||||
|
script
|
||||||
|
}
|
||||||
|
|
||||||
|
restart () {
|
||||||
|
script
|
||||||
|
}
|
||||||
|
|
||||||
|
reload () {
|
||||||
|
script
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user