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:
Bernhard Froehlich 2017-04-20 08:09:04 +00:00
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

View file

@ -4,7 +4,7 @@
PORTNAME= tvheadend
PORTVERSION= 4.0.8
DISTVERSIONPREFIX= v
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= multimedia
MAINTAINER= decke@FreeBSD.org

View file

@ -38,13 +38,13 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/sbin:%%PREFIX%%/bin
tvheadend_prestart()
{
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
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
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
}