adguardhome: add option config

Signed-off-by: xiaobo tian <peterwillcn@gmail.com>
This commit is contained in:
xiaobo tian
2024-08-03 12:42:58 +08:00
committed by Tianling Shen
parent e238bfa798
commit c51679d498
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=adguardhome
PKG_VERSION:=0.107.52
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+1
View File
@@ -1,3 +1,4 @@
config adguardhome config
# Where to store persistent data by AdGuard Home
option workdir /var/adguardhome
option config /etc/adguardhome.yaml
+2 -1
View File
@@ -22,11 +22,12 @@ start_service() {
config_load adguardhome
config_get WORK_DIR config workdir
config_get CONFIG_FILE config config "/etc/adguardhome.yaml"
[ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR"
procd_open_instance
procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w "$WORK_DIR" --no-check-update
procd_set_param command "$PROG" -c "$CONFIG_FILE" -w "$WORK_DIR" --no-check-update
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance