digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

getent program used in src/scripts/zotonic-addsite does not exist on MacOSX #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the version of zotonic that I cloned from the mercurial repository 
on March 8.

When generating a new site on MacOSX (10.6.6), you get the following error:

$ bin/zotonic addsite -s blog newsite
~/Projects/Erlang/zotonic_hg/zotonic ~/Projects/Erlang/zotonic_hg/zotonic
bin/../src/scripts/zotonic-addsite: line 58: getent: command not found
...

I have attached a patch that uses the dscl command to acquire the full username 
when running on MacOSX.

Original issue reported on code.google.com by k...@westryn.net on 9 Mar 2011 at 7:20

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for adding this patch! Cannot test it on mac but I'll assume that it 
works :-)

can you give me your name/email address so I can include you in the 
contributors file?

tx Arjan

Original comment by scherpenisse on 9 Mar 2011 at 10:27

GoogleCodeExporter commented 8 years ago
Fixed in 3f6150dd40 

Original comment by scherpenisse on 9 Mar 2011 at 10:41

GoogleCodeExporter commented 8 years ago

Original comment by scherpenisse on 9 Mar 2011 at 10:41

GoogleCodeExporter commented 8 years ago
Sure.  It's Kim Shrier   kim@westryn.net

Kim

Original comment by k...@westryn.net on 9 Mar 2011 at 11:34