transmission: Fix env variables passing
authorLeonid Bogdanov <leonidbogdanov86@gmail.com>
Sat, 10 Jun 2023 13:06:31 +0000 (23:06 +1000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 11 Jun 2023 11:14:17 +0000 (12:14 +0100)
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 <leonidbogdanov86@gmail.com>
net/transmission/files/transmission.init

index a1673087f000516b8c10166feb0b71b4d14c9e1c..896cee18faaef9ee2f6858dad2ef25407b0a1cdf 100644 (file)
@@ -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"