Browse Source

transmission: include default 'web_home' dir in jail

Fixes 'transmission-web' for users which didn't manually configure the
'web_home' option.
Assume transmission's default in case 'web_home' isn't defined and
mount the directory so it can be accessed from inside the jail.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 3 years ago
parent
commit
2d09384be7
No known key found for this signature in database GPG Key ID: 5A8F39C31C3217CA
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      net/transmission/Makefile
  2. +2
    -1
      net/transmission/files/transmission.init

+ 1
- 1
net/transmission/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=transmission PKG_NAME:=transmission
PKG_VERSION:=3.00 PKG_VERSION:=3.00
PKG_RELEASE:=16
PKG_RELEASE:=17
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master


+ 2
- 1
net/transmission/files/transmission.init View File

@ -160,7 +160,8 @@ transmission() {
procd_add_jail_mount_rw "$config_dir/blocklists" procd_add_jail_mount_rw "$config_dir/blocklists"
procd_add_jail_mount_rw "$config_dir/stats.json" procd_add_jail_mount_rw "$config_dir/stats.json"
procd_add_jail_mount_rw "$download_dir" procd_add_jail_mount_rw "$download_dir"
[ -d "$web_home" ] && procd_add_jail_mount_rw "$web_home"
web_home="${web_home:-/usr/share/transmission/web}"
[ -d "$web_home" ] && procd_add_jail_mount "$web_home"
procd_close_instance procd_close_instance
} }


Loading…
Cancel
Save