2014-11-11 21:07:13 +00:00
|
|
|
#!/bin/sh
|
2014-11-16 13:19:56 +00:00
|
|
|
|
|
|
|
if [ -f /config/transmission/settings.json ];
|
|
|
|
then
|
|
|
|
echo "STARTING TRANSMISSION: Using custom config directory /config/transmission"
|
2015-05-07 19:34:34 +00:00
|
|
|
exec /usr/bin/transmission-daemon -g /config/transmission/ &
|
2014-11-16 13:19:56 +00:00
|
|
|
else
|
|
|
|
echo "STARTING TRANSMISSION: No configuration provided, using defaults"
|
2015-05-07 19:34:34 +00:00
|
|
|
exec /usr/bin/transmission-daemon -g /etc/transmission-daemon/ &
|
2014-11-16 13:19:56 +00:00
|
|
|
fi
|
2015-05-07 19:34:34 +00:00
|
|
|
|
|
|
|
exec /etc/transmission-daemon/startPortUpdates.sh &
|
|
|
|
|
|
|
|
echo "STARTED PORT UPDATER"
|