added support for uid/gid ... by default transmission will still run as root so as to not break backwards compatibility.

This commit is contained in:
Branden Cash
2016-09-26 23:36:24 -07:00
parent 187be60940
commit 8cb81cc588
6 changed files with 64 additions and 7 deletions

View File

@@ -19,8 +19,10 @@ if [ ! -e "/dev/random" ]; then
ln -s /dev/urandom /dev/random
fi
. /etc/transmission/userSetup.sh
echo "STARTING TRANSMISSION"
exec /usr/bin/transmission-daemon -g ${TRANSMISSION_HOME} --logfile ${TRANSMISSION_HOME}/transmission.log &
exec sudo -u ${RUN_AS} /usr/bin/transmission-daemon -g ${TRANSMISSION_HOME} --logfile ${TRANSMISSION_HOME}/transmission.log &
if [ "$OPENVPN_PROVIDER" = "PIA" ]
then