fix: transmission web 404 (#843)

This commit is contained in:
Joseph km 2024-08-04 00:10:44 -07:00 committed by GitHub
parent 3f2901f4fe
commit ce732f8d59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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