update 2023-03-09 00:28:03

This commit is contained in:
github-actions[bot] 2023-03-09 00:28:03 +08:00
parent b654332e2e
commit b238de3cf3
1 changed files with 4 additions and 1 deletions

View File

@ -11,10 +11,11 @@ LUCI_PKGARCH:=all
LUCI_DEPENDS:=+ca-certs +curl +wget-ssl +PACKAGE_$(PKG_NAME)_INCLUDE_binary:adguardhome
LUCI_DESCRIPTION:=LuCI support for AdGuardHome
define Package/$(PKG_NAME)/config
config PACKAGE_$(PKG_NAME)_INCLUDE_binary
bool "Include Binary File"
default y
default n
endef
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_binary
@ -25,8 +26,10 @@ define Package/luci-app-adguardhome/conffiles
/etc/AdGuardHome.yaml
endef
define Package/luci-app-adguardhome/postinst
#!/bin/sh
chmod 755 /usr/share/AdGuardHome/*
/etc/init.d/AdGuardHome enable >/dev/null 2>&1
enable=$(uci get AdGuardHome.AdGuardHome.enabled 2>/dev/null)
if [ "$enable" == "1" ]; then