Kinda proud of this python script I wrote
Kinda proud of this python script I wrote
So I'm learning python (by doing, reading, and doing some more), and I've been wanting to automate updating the listening port in my qbittorrent docker container when the gluetun vpn container changes the forwarded port.
This is what I came up with, which I combined with an hourly cronjob to keep it the listen port updated.
(Code under the spoiler tag to make this more readable).
There's more I want to do, the next thing being to check the status of both containers and if one or both are down, to log that and gracefully exit, but for now, I'm pretty happy with this (open to any feedback, always willing to learn).