Update 20-transmission-configuration.sh

This commit is contained in:
Alexandre
2020-12-13 12:11:58 +01:00
committed by GitHub
parent 5cd69daf8f
commit fbf655cba9

View File

@@ -2,9 +2,6 @@
# ==============================================================================
declare CONFIG
declare authentication_required
declare username
declare password
declare incomplete_bool
declare download_dir
declare incomplete_dir
@@ -34,15 +31,4 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-whitelist-enabled\"=false")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-host-whitelist-enabled\"=false")
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
authentication_required=$(bashio::config 'authentication_required')
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-authentication-required\"=${authentication_required}")
username=$(bashio::config 'username')
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-username\"=\"${username}\"")
password=$(bashio::config 'password')
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-password\"=\"${password}\"")
echo "${CONFIG}" > /share/transmission/settings.json