![]() I would definitely recommend leaving in the HAUGENE_ID line (change the variable name to whatever you like) just to make the next command easier to read. You can just as easily alter this by doing -e tmpUser="MyActualUsername" -e tmpPass="MyActualPassword" or omit the 2 environment flags entirely from this script and hardcode your user/pass into the original remove_finished_torrents script by changing the 2 instances of $tmpUser:$tmpPass to MyActualUsername:MyActualPassword. What I'm doing in this last script is taking the variables already setup - $RPC_U and $RPC_P - and passing them to temporary variables inside the transmission docker container - tmpUser and tmpPass. If you're wondering about tmpUser, tmpPass, and the RPC variables: I have my transmission rpc login/pass set through /etc/environment. ![]() If ] thenĮcho -n "Using server string from the environment: "Įcho -n "Using server string passed through parameters: "Įcho -n "Using hardcoded server string: "Įcho " $'`ĭocker exec -e tmpUser=$RPC_U -e tmpPass=$RPC_P $HAUGENE_ID /shared/remove_finished_torrentsĭon't forget to make it sudo chmod +x cleanup ![]() # Which torrent states should be removed at 100% progress.ĭONE_STATES=( "Seeding " "Stopped " "Finished " "Idle ") ![]() # Server string: "host:port -auth username:password" Hardcoded string in this script (see below). # Server string is resolved in this order: ![]() # Clears finished downloads from Transmission. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |