Signed-off-by: xiaobo tian <peterwillcn@gmail.com>
PKG_NAME:=adguardhome
PKG_VERSION:=0.107.52
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
config adguardhome config
# Where to store persistent data by AdGuard Home
option workdir /var/adguardhome
+ option config /etc/adguardhome.yaml
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