From: Leonid Bogdanov Date: Sat, 10 Jun 2023 13:06:31 +0000 (+1000) Subject: transmission: Fix env variables passing X-Git-Url: http://git.openwrt.org/feed/packages.git?a=commitdiff_plain;h=3be19d32d1e367246e01e23c7e44177fe3778843;p=feed%2Fpackages.git transmission: Fix env variables passing It's not possible to configure custom Transmission web home as corresponding env var gets overwritten by the command that sets CA bundle env var. Signed-off-by: Leonid Bogdanov (cherry picked from commit c662aefd9aaa15b3a1f7570ccd1d5fe33aeb2a45) --- diff --git a/net/transmission/files/transmission.init b/net/transmission/files/transmission.init index a1673087f0..896cee18fa 100644 --- a/net/transmission/files/transmission.init +++ b/net/transmission/files/transmission.init @@ -158,8 +158,8 @@ transmission() { logger -t transmission "Starting with $USE virt mem" fi - [ -d "$web_home" ] && procd_set_param env TRANSMISSION_WEB_HOME="$web_home" - [ "$ca_bundle" -gt 0 ] && procd_set_param env CURL_CA_BUNDLE="$ca_bundle_file" + [ -d "$web_home" ] && procd_append_param env TRANSMISSION_WEB_HOME="$web_home" + [ "$ca_bundle" -gt 0 ] && procd_append_param env CURL_CA_BUNDLE="$ca_bundle_file" procd_add_jail transmission log procd_add_jail_mount "$config_file"