net-p2p/transmission: skip diropts when not running as root
authorMike Gilbert <floppym@gentoo.org>
Wed, 13 Nov 2019 15:20:34 +0000 (10:20 -0500)
committerMike Gilbert <floppym@gentoo.org>
Wed, 13 Nov 2019 15:20:34 +0000 (10:20 -0500)
Closes: https://bugs.gentoo.org/699616
Package-Manager: Portage-2.3.78_p18, Repoman-2.3.17_p114
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
net-p2p/transmission/transmission-2.94-r1.ebuild
net-p2p/transmission/transmission-9999.ebuild

index f82f46f2b050248431f1dbada3b89a82b085a328..86c72f12f62bb3d58cfdc9247f8102e0447a56fc 100644 (file)
@@ -138,7 +138,9 @@ src_install() {
                popd >/dev/null || die
        fi
 
-       diropts -o transmission -g transmission
+       if [[ ${EUID} == 0 ]]; then
+               diropts -o transmission -g transmission
+       fi
        keepdir /var/lib/transmission
 }
 
index c3356d08142391dab09bfa0f8f5955e699fd8c19..b15f594478bb9d249f5e8ad18b416fb0b0b4ebb4 100644 (file)
@@ -129,7 +129,9 @@ src_install() {
        insinto /usr/lib/sysctl.d
        doins "${FILESDIR}"/60-transmission.conf
 
-       diropts -o transmission -g transmission
+       if [[ ${EUID} == 0 ]]; then
+               diropts -o transmission -g transmission
+       fi
        keepdir /var/lib/transmission
 }