Skip to content

Commit

Permalink
fix bug and pump version
Browse files Browse the repository at this point in the history
  • Loading branch information
rufengsuixing committed Dec 23, 2019
1 parent 72c7f63 commit 72800e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-adguardhome
PKG_VERSION:=1.8
PKG_RELEASE:=3
PKG_RELEASE:=4

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

Expand Down
6 changes: 3 additions & 3 deletions root/etc/init.d/AdGuardHome
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ do_crontab(){
crontab_editor
fi

findstr="/usr/bin/AdGuardHome/addhost.sh"
default="#0 * * * * /usr/bin/AdGuardHome/addhost.sh"
findstr="/usr/share/AdGuardHome/addhost.sh"
default="#0 * * * * /usr/share/AdGuardHome/addhost.sh"
[ "${crontab//autohost/}" == "$crontab" ] && enable=0 || enable=1
crontab_editor
[ "$enable" == "0" ] && /usr/bin/AdGuardHome/addhost.sh del
[ "$enable" == "0" ] && /usr/share/AdGuardHome/addhost.sh del
}
crontab_editor(){
local line="$(grep "$findstr" $CRON_FILE)"
Expand Down

0 comments on commit 72800e8

Please sign in to comment.