add_users won't?!

Craig Treleaven ctreleaven at cogeco.ca
Wed May 16 05:09:20 PDT 2012


At 7:41 AM -0400 5/16/12, Jeremy Lavergne wrote:
>  > I'm trying to add a user (with a new group) and I can't get it to 
>work.  Below are the relevant bits from the portfile.
>>
>>  set mythtvuser		${name}user
>>  set mythtvgroup		myth
>>  set mythtvhomedir	${prefix}/var/${mythtvuser}
>>  add_users ${mythtvuser} group=${mythtvgroup} home=${mythtvhomedir} \
>>     passwd=mythtv realname=MythTV_User
>>
>>  There doesn't seem to be an error message from the add_users line 
>>but when I use xinstall in the pre-activate phase, it complains 
>>there is no such group.  Also, in System Preferences->Accounts, my 
>>user doesn't show up.  (It should, right?)
>>
>>  If you want to see the full Portfile (with these bits commented-out), go to:
>>  http://dl.dropbox.com/u/26787680/Portfile.MythTV.2012May16
>
>Just checking: you purposefully commented-out the add_users lines 
>after having run it and not had it commented the whole time, right? 
>:-)

Right--I may be new but even I know that commented-out lines don't execute!  ;)

>  > I notice that other ports, like couchdb and dbus use separate 
>addgroup and adduser functions.  Are these deprecated?
>
>Correct.

Craig



More information about the macports-dev mailing list