How to make "sudo port install" run a post-activate script with only user permission?

Clemens Lang cal at macports.org
Thu Oct 4 07:17:44 PDT 2012


On Thu, Oct 04, 2012 at 10:13:54AM -0400, Jeremy Lavergne wrote:
> Perhaps we could add that. 
> 
> We could use $SUDO_USER or logname, but I'm not sure how fragile an
> assumption those will be. I imagine it'd be messy if they're wrong and
> end up installing a bunch of files and directories with the wrong
> owner.

We could do that, but it would break in multiuser environments. Running
the command as _every_ possible user that might use the installed
software is not an option, IMHO.

-- 
Clemens Lang



More information about the macports-dev mailing list