Note
I just threw this together in a couple minutes, so it's not perfect. The implementation probably has a lot of flaws and could be improved.
But I think I got my point across, if not let me know and I can try to explain it better.
.env*:
| #!/command/with-contenv bash | |
| # shellcheck shell=bash | |
| # | |
| # This is for hotio's qBittorrent docker image, but can be used for other qBittorrent docker images | |
| # by mounting this script to wherever your image expects custom init scripts to be, and changing | |
| # the shebang to the appropriate path for your image | |
| # | |
| # This script adds proton-port-forward-for-qbittorrent.sh to the crontab to run every 15 min on container start | |
| # Make sure proton-port-forward-for-qbittorrent.sh is in the expected location /usr/local/bin |
| Write-Host @" | |
| +===================================================+ | |
| | This script is not necessary for pyenv >= 2.64.8 | | |
| | Use 'pyenv install VERSION --register' instead | | |
| +===================================================+ | |
| "@ -ForegroundColor Red | |
| $LogTimeStamp = Get-Date -Format "MM.dd.yy.hh.mm.ss" |