Browse Source

fix bug and pump version

rufengsuixing 5 years ago
parent
commit
72800e8a36
2 changed files with 4 additions and 4 deletions
  1. 1 1
      Makefile
  2. 3 3
      root/etc/init.d/AdGuardHome

+ 1 - 1
Makefile

@@ -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)
 

+ 3 - 3
root/etc/init.d/AdGuardHome

@@ -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)"