diff --git a/net/adguardhome/Makefile b/net/adguardhome/Makefile index 1f5bd06a0..a78086899 100644 --- a/net/adguardhome/Makefile +++ b/net/adguardhome/Makefile @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adguardhome -PKG_VERSION:=0.106.0 +PKG_VERSION:=0.106.1 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/AdguardTeam/AdGuardHome -PKG_MIRROR_HASH:=5e3fb3bb93ad8d7ac3351503e7b01353dc409bc30a719a6ed7b967e8a462434c +PKG_MIRROR_HASH:=631ed8d671827e78dffaec94d21a69ec9dcda80ef843057592167b8be6edd780 PKG_LICENSE:=GPL-3.0-only PKG_LICENSE_FILES:=LICENSE.txt diff --git a/net/adguardhome/files/adguardhome.init b/net/adguardhome/files/adguardhome.init index f2c733534..d9854f8bc 100644 --- a/net/adguardhome/files/adguardhome.init +++ b/net/adguardhome/files/adguardhome.init @@ -1,6 +1,8 @@ #!/bin/sh /etc/rc.common PROG=/usr/bin/AdGuardHome +WORK_DIR=/tmp/adguardhome + USE_PROCD=1 # starts after network starts @@ -9,8 +11,10 @@ START=21 STOP=89 start_service() { + [ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR" + procd_open_instance - procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w /tmp/adguardhome --no-check-update + procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w "$WORK_DIR" --no-check-update procd_set_param stdout 1 procd_set_param stderr 1 procd_close_instance