luci-app-mosdns: restart service after the rules updated
This commit is contained in:
parent
80068ba196
commit
d5cf333653
@ -80,6 +80,10 @@ geodat_update() (
|
|||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
restart_service() {
|
||||||
|
service mosdns restart
|
||||||
|
}
|
||||||
|
|
||||||
case $script_action in
|
case $script_action in
|
||||||
"dns")
|
"dns")
|
||||||
interface_dns
|
interface_dns
|
||||||
@ -88,13 +92,13 @@ case $script_action in
|
|||||||
ad_block
|
ad_block
|
||||||
;;
|
;;
|
||||||
"geodata")
|
"geodata")
|
||||||
geodat_update && adlist_update
|
geodat_update && adlist_update && restart_service
|
||||||
;;
|
;;
|
||||||
"logfile")
|
"logfile")
|
||||||
logfile_path
|
logfile_path
|
||||||
;;
|
;;
|
||||||
"adlist_update")
|
"adlist_update")
|
||||||
adlist_update
|
adlist_update && restart_service
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user