From 70068ea3002ab4b84c33ff8985bce79c5d7294b1 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 9 Mar 2016 16:59:18 +0000 Subject: [PATCH] news/sabnzbdplus: Revert removal of PATH in rc script There were reports of fallout so this has been reverted. It is not understood why an explicit PATH needs to be set. In testing without it the correct PATH appears to be exported during the start_precmd routine. PR: 207583 Approved by: maintainer --- news/sabnzbdplus/Makefile | 2 +- news/sabnzbdplus/files/sabnzbd.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/news/sabnzbdplus/Makefile b/news/sabnzbdplus/Makefile index 7fddbdd7f286..e6c5ffdd3e9f 100644 --- a/news/sabnzbdplus/Makefile +++ b/news/sabnzbdplus/Makefile @@ -2,7 +2,7 @@ PORTNAME= sabnzbdplus PORTVERSION= 0.7.20 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= news MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= SABnzbd-${PORTVERSION}-src diff --git a/news/sabnzbdplus/files/sabnzbd.in b/news/sabnzbdplus/files/sabnzbd.in index 37625ffa54f8..3052e02300b5 100644 --- a/news/sabnzbdplus/files/sabnzbd.in +++ b/news/sabnzbdplus/files/sabnzbd.in @@ -46,6 +46,7 @@ command_args="--daemon -f ${sabnzbd_conf_dir}/sabnzbd.ini --pidfile ${pidfile}" sabnzbd_prestart() { + PATH=${PATH}:%%PREFIX%%/bin:%%PREFIX%%/sbin for sabdir in ${sabnzbd_conf_dir} ${pidfile%/*}; do if [ ! -d "${sabdir}" ]; then install -d -o ${sabnzbd_user} -g ${sabnzbd_group} ${sabdir}