[MacPorts] #23168: couchdb user created with wrong home directory

MacPorts noreply at macports.org
Wed Jan 6 14:41:00 PST 2010


#23168: couchdb user created with wrong home directory
---------------------------------+------------------------------------------
 Reporter:  jabronson@…          |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.8.2                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 currently installing the couchdb port creates a "couchdb" user without
 specifying the home directory, so it gets set to /dev/null, resulting in
 the following:
 {{{
 $ sudo -H -u couchdb /opt/local/bin/couchdb
 =ERROR REPORT==== 6-Jan-2010::16:14:48 ===
 file:path_eval([".","/dev/null"],".erlang"): not a directory
 ...
 }}}

 The couchdb user's home directory should be set to
 /opt/local/var/lib/couchdb. After I ran {{{dscl . change /Users/couchdb
 NFSHomeDirectory /dev/null  /opt/local/var/lib/couchdb}}}, the error went
 away.

 The following patch ought to fix this, as well as set the shell to
 something valid while we're at it:
 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 62405)
 +++ Portfile    (working copy)
 @@ -41,7 +41,7 @@

  post-destroot {
      addgroup ${dbgroup}
 -    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
 +    adduser ${dbuser} gid=[existsgroup ${dbgroup}] home=${dbdir}
 shell=/bin/bash
      xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
         ${destroot}${dbdir} \
         ${destroot}${logdir} \
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/23168>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list