mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-02 09:45:47 +01:00
add opportunity to disable authentification by setting user and or password to empty string.
This commit is contained in:
@@ -12,6 +12,10 @@ if [ ! -z "$USER" ] && [ ! -z "$PASS" ]; then
|
||||
sed -i '/rpc-authentication-required/c\ "rpc-authentication-required": true,' /config/settings.json
|
||||
sed -i "/rpc-username/c\ \"rpc-username\": \"$USER\"," /config/settings.json
|
||||
sed -i "/rpc-password/c\ \"rpc-password\": \"$PASS\"," /config/settings.json
|
||||
else
|
||||
sed -i '/rpc-authentication-required/c\ "rpc-authentication-required": false,' /config/settings.json
|
||||
sed -i "/rpc-username/c\ \"rpc-username\": \"$USER\"," /config/settings.json
|
||||
sed -i "/rpc-password/c\ \"rpc-password\": \"$PASS\"," /config/settings.json
|
||||
fi
|
||||
|
||||
# permissions
|
||||
|
||||
Reference in New Issue
Block a user