deluge/docker/bin/start.sh

13 lines
377 B
Bash
Raw Normal View History

2024-10-25 22:20:55 +00:00
#!/usr/bin/env bash
set -e
if [ -z "${DELUGE_EXTERNAL_IP}" ]; then
echo "Warning: the listen IP address for the container has not been set."
DELUGE_EXTERNAL_IP=$(hostname -i)
echo "Using ${DELUGE_EXTERNAL_IP}"
export DELUGE_EXTERNAL_IP
fi
cd "${DELUGE_APP}"
python ./docker/bin/create_config.py
python -m deluge.core.daemon_entry -c "${DELUGE_CONFIG_DIR}" -d -L debug