Create directory for www:www
abi at abinet.ru
abi at abinet.ru
Fri Apr 1 13:51:52 UTC 2016
Great! Looks like I missed certain parts of Porter's Handbook
Baptiste Daroussin писал 2016-04-01 13:31:
> 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
More information about the freebsd-ports
mailing list