1
0
Fork 0
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:
Sayantan Santra 2024-12-09 23:40:07 -06:00
parent af2baca9a9
commit daef0507f7
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898

View file

@ -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."