mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-07 07:07:02 +08:00
fix: transmission web 404 (#843)
This commit is contained in:
parent
3f2901f4fe
commit
ce732f8d59
@ -6,7 +6,7 @@ config transmission
|
||||
option group 'transmission'
|
||||
option mem_percentage 50
|
||||
option nice 10
|
||||
option web_home ''
|
||||
option web_home '/usr/share/transmission/web'
|
||||
option alt_speed_down 50
|
||||
option alt_speed_enabled false
|
||||
option alt_speed_time_begin 540
|
||||
|
@ -128,11 +128,13 @@ transmission() {
|
||||
logger -t transmission "Starting with $USE virt mem"
|
||||
fi
|
||||
|
||||
procd_add_jail transmission log
|
||||
|
||||
if test -d "$web_home"; then
|
||||
procd_add_jail_mount "$web_home"
|
||||
procd_set_param env TRANSMISSION_WEB_HOME="$web_home"
|
||||
fi
|
||||
|
||||
procd_add_jail transmission log
|
||||
procd_add_jail_mount "$config_file"
|
||||
procd_add_jail_mount_rw "$download_dir"
|
||||
procd_close_instance
|
||||
|
Loading…
Reference in New Issue
Block a user