mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
fix: Works with cron properly
This commit is contained in:
parent
af2baca9a9
commit
daef0507f7
1 changed files with 2 additions and 1 deletions
|
@ -9,8 +9,9 @@ set -e
|
||||||
qbt_username="${QBT_USERNAME:-admin}"
|
qbt_username="${QBT_USERNAME:-admin}"
|
||||||
qbt_password="${QBT_PASSWORD:-adminadmin}"
|
qbt_password="${QBT_PASSWORD:-adminadmin}"
|
||||||
qbt_addr="${QBT_ADDR:-http://localhost:8085}" # ex. http://10.0.1.48:8080
|
qbt_addr="${QBT_ADDR:-http://localhost:8085}" # ex. http://10.0.1.48:8080
|
||||||
|
gluetun_container="${GLUETUN_COMTAINER:-'qbt-gluetun'}"
|
||||||
|
|
||||||
port_number=$(docker exec -it qbt-gluetun cat /tmp/gluetun/forwarded_port)
|
port_number=$(docker exec "$gluetun_container" cat /tmp/gluetun/forwarded_port)
|
||||||
|
|
||||||
if [ -z "$port_number" ]; then
|
if [ -z "$port_number" ]; then
|
||||||
echo "Could not figure out which port to set."
|
echo "Could not figure out which port to set."
|
||||||
|
|
Loading…
Reference in a new issue