mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
adguardhome: add jail_mount_rw config option
Add jail_mount_rw config option to add directories with read-write access. Fixes: https://forum.openwrt.org/t/247253 Signed-off-by: Afiq Nazrie <afnazrie@gmail.com>
This commit is contained in:
committed by
George Sapkin
parent
98a02be97b
commit
704319e27b
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=adguardhome
|
||||
PKG_VERSION:=0.107.72
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/AdGuardHome/tar.gz/v$(PKG_VERSION)?
|
||||
|
||||
@@ -7,10 +7,14 @@ config adguardhome 'config'
|
||||
option user 'adguardhome'
|
||||
option group 'adguardhome'
|
||||
option verbose '0'
|
||||
|
||||
# Files and directories that AdGuard Home has read-only access to
|
||||
# list jail_mount '/etc/ssl/adguardhome.crt'
|
||||
# list jail_mount '/etc/ssl/adguardhome.key'
|
||||
|
||||
# Files and directories that AdGuard Home has read-write access to
|
||||
# list jail_mount_rw '/path/to/dir'
|
||||
|
||||
# Advanced options. Modify at your own risk.
|
||||
|
||||
# https://go.dev/doc/gc-guide#GOGC
|
||||
|
||||
@@ -102,6 +102,7 @@ start_service() {
|
||||
procd_add_jail_mount /etc/hosts
|
||||
procd_add_jail_mount /etc/ssl/certs
|
||||
config_list_foreach config jail_mount procd_add_jail_mount
|
||||
config_list_foreach config jail_mount_rw procd_add_jail_mount_rw
|
||||
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user