Changing ownership of a directory when using staging
Adam Weinberger
adamw at adamw.org
Sat Feb 22 19:05:48 UTC 2014
How do I specify the owner/group and mode of a directory when using
staging? It appears to automatically create every directory as
root:wheel. Setting @user/@group in pkg-plist doesn't affect things with
@exec mkdir.
The only thing I can figure is:
@exec install -d -m 730 -o user -g group %D/path/to/dir
But that'll fail when installed by anyone except root, right?
This problem breaks usability of a number of ports---especially
web-based ones where specific directories need specific owners. Every
time www/dokuwiki is upgraded or reinstalled, a half dozen directories
have to be manually chown'd on the command line, for example.
# Adam
--
Adam Weinberger
adamw at adamw.org
http://www.adamw.org
More information about the freebsd-ports
mailing list