aboutsummaryrefslogtreecommitdiff
path: root/scripts/entrypoint.sh
diff options
context:
space:
mode:
authorChristian Segundo2023-10-06 20:01:14 +0200
committerChristian Segundo2023-10-06 20:01:14 +0200
commit3a6ace363eb6a98ccd277ea21fa8e45b78907435 (patch)
tree2ad2b289a0855b1661cebee031dfd7990fd877b9 /scripts/entrypoint.sh
parent66cba1261e4e734cd0571351c0bbba6a305099d8 (diff)
downloadtransmission-hacks-3a6ace363eb6a98ccd277ea21fa8e45b78907435.tar.gz
add timeout to commands
Diffstat (limited to 'scripts/entrypoint.sh')
-rw-r--r--scripts/entrypoint.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh
index e40b462..c61a0ff 100644
--- a/scripts/entrypoint.sh
+++ b/scripts/entrypoint.sh
@@ -4,6 +4,7 @@ set -euo pipefail
cat <<EOF >> /etc/cron.d/crontab
PYTHON_PATH=/usr/local/bin/python3
SCRIPT_PREFIX=/scripts
+SCRIPT_TIMEOUT=${SCRIPT_TIMEOUT:-300}
TRANSMISSION_HOST=${TRANSMISSION_HOST:-localhost}
TRANSMISSION_PORT=${TRANSMISSION_PORT:-9091}
EOF