1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix creation of directories in rc script

Submitted by:	gizd
Approved by:	crees (mentor)
MFH:		2014Q1
This commit is contained in:
Mark Felder 2014-01-13 16:13:33 +00:00
parent 79b0968a4b
commit b6dca3abd2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339606
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= inspircd
PORTVERSION= 2.0.14
PORTREVISION= 1
CATEGORIES= irc
MAINTAINER= feld@FreeBSD.org

View File

@ -47,11 +47,11 @@ inspircd_prestart()
{
piddir=$(dirname ${inspircd_pidfile})
if [ ! -d ${piddir} ]; then
install -m 755 -o ${inspircd_user} -g ${inspircd_group} ${piddir}
install -d -m 755 -o ${inspircd_user} -g ${inspircd_group} ${piddir}
fi
logdir=$(dirname ${inspircd_logfile})
if [ ! -d ${logdir} ]; then
install -m 755 -o ${inspircd_user} -g ${inspircd_group} ${logdir}
install -d -m 755 -o ${inspircd_user} -g ${inspircd_group} ${logdir}
fi
}