net-p2p/deluge: add umask values to openrc script (Fixes bug #566862)
authorPaolo Pedroni <paolo.pedroni@iol.it>
Fri, 12 Feb 2016 10:19:33 +0000 (11:19 +0100)
committerKristian Fiskerstrand <k_f@gentoo.org>
Tue, 16 Feb 2016 17:51:04 +0000 (18:51 +0100)
Thanks to Scott Jones <morbidsvt@gmail.com>

net-p2p/deluge/files/deluged.conf
net-p2p/deluge/files/deluged.init

index 0918f45fc7ff3cf8c3fd77ca1bc60a3d84443a77..21b375d5c97f864e0d1a1d4eb7e217c43616004c 100644 (file)
@@ -2,6 +2,7 @@
 # Change this to the user you want to run deluged as.
 # You may specify a group too, after a colon
 DELUGED_USER=""
+# DELUGED_UMASK="0002"
 # DELUGED_OPTS="-p 58846"
 DELUGEUI_START="false"
 DELUGEUI_OPTS="-u web"
index e60945df1558cab895fe000fc1ef079fad0ff479..24f0a123eddfc039a0145bf8d7c10fe16204abc8 100644 (file)
@@ -41,6 +41,7 @@ start() {
        ebegin "Starting Deluged"
        start-stop-daemon --start --user "${DELUGED_USER%:*}" \
        --name deluged --pidfile /var/run/deluged.pid --background --make-pidfile \
+       ${DELUGED_UMASK:+--umask ${DELUGED_UMASK}} \
        --exec /usr/bin/deluged -e HOME="${DELUGED_USER_HOME}" -- --do-not-daemonize "${DELUGED_OPTS}"
        eend $?