Create directory for www:www

Baptiste Daroussin bapt at FreeBSD.org
Fri Apr 1 10:31:15 UTC 2016


On Fri, Apr 01, 2016 at 01:12:10PM +0300, abi at abinet.ru wrote:
>  
> 
> Hello! 
> 
> I'm porting ZoneMinder, it needs folder, writable under web server user.
> 
> 
> I wrote in post-install something like this 
> 
> ${INSTALL} -d -g ${WWWGRP} -o ${WWWOWN} ${STAGEDIR}${WWWDIR}/images 
> 
> I can see right permissions in a stage directory, however, after
> installation a destination folder has root:wheel owner. 
> 
> How can create directory in a proper way? 

Do not set the credential in the stage a simple mkdir is enough

In the plist
@dir(%%WWWOWN%%,%%WWWGRP%%,) %%WWWDIR%%/images

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160401/551386ef/attachment.sig>


More information about the freebsd-ports mailing list