mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
Use correct group in prestart when creating logdir/confdir/pidfile.
Submitted by: Tim Brody <tim.brody@gmail.com> Reported by: Tim Brody <tim.brody@gmail.com>
This commit is contained in:
parent
7d52390f58
commit
27a6839e10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438930
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
PORTNAME= tvheadend
|
PORTNAME= tvheadend
|
||||||
PORTVERSION= 4.0.8
|
PORTVERSION= 4.0.8
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
PORTREVISION= 4
|
PORTREVISION= 5
|
||||||
CATEGORIES= multimedia
|
CATEGORIES= multimedia
|
||||||
|
|
||||||
MAINTAINER= decke@FreeBSD.org
|
MAINTAINER= decke@FreeBSD.org
|
||||||
|
|
|
@ -38,13 +38,13 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/sbin:%%PREFIX%%/bin
|
||||||
tvheadend_prestart()
|
tvheadend_prestart()
|
||||||
{
|
{
|
||||||
if [ ! -f "${pidfile}" ]; then
|
if [ ! -f "${pidfile}" ]; then
|
||||||
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_user} -m 644 /dev/null ${pidfile}
|
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_group} -m 644 /dev/null ${pidfile}
|
||||||
fi
|
fi
|
||||||
if [ ! -d "${confdir}" ]; then
|
if [ ! -d "${confdir}" ]; then
|
||||||
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_user} -m 755 -d ${confdir}
|
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_group} -m 755 -d ${confdir}
|
||||||
fi
|
fi
|
||||||
if [ ! -d "${logdir}" ]; then
|
if [ ! -d "${logdir}" ]; then
|
||||||
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_user} -m 755 -d ${logdir}
|
/usr/bin/install -o ${tvheadend_user} -g ${tvheadend_group} -m 755 -d ${logdir}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue