docker-qBittorrentvpn/transmission/start.sh
2015-05-23 09:06:08 -07:00

15 lines
467 B
Bash
Executable File

#!/bin/sh
if [ -f /data/transmission-data/settings.json ]
then
echo "STARTING TRANSMISSION: Using transmission-data subdirectory to your /data mount point to store state."
exec /usr/bin/transmission-daemon -g /data/transmission-data/ &
else
echo "STARTING TRANSMISSION: Storing state in container only."
exec /usr/bin/transmission-daemon -g /etc/transmission-daemon/ &
fi
exec /etc/transmission-daemon/startPortUpdates.sh &
echo "STARTED PORT UPDATER"