[
http://jira.codehaus.org/browse/MAPPASM-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MRM-968 to MAPPASM-81:
-----------------------------------------
Affects Version/s: (was: 1.2)
Fix Version/s: (was: 1.2-M2)
Component/s: (was: system)
Key: MAPPASM-81 (was: MRM-968)
Project: Mojo AppAssembler Plugin (was: Archiva)
> On the mandrake system, the "id" command is never found
> -------------------------------------------------------
>
> Key: MAPPASM-81
> URL: http://jira.codehaus.org/browse/MAPPASM-81
> Project: Mojo AppAssembler Plugin
> Issue Type: Bug
> Environment: Mandriva Linux release 2008.1 (Official) for x86_64
> Reporter: Cotonea
> Priority: Trivial
>
> In the archiva script, in the "checkUser" method, there is a routine that
> search the "id" command location in the system. If this routine doesn't find
> the "id" location this following message is showed:
> Unable to locate 'id'.
> Please report this message along with the location of the command on your
> system.
> Then on the Mandrake system, the "id" location is not know by the archiva
> script. Then to bypass the problem, I've added the new "id" location:
> /bin/id. Then this script section:
> # Check the configured user. If necessary rerun this
> script as the desired user.
> if [ "X$RUN_AS_USER" != "X" ]
> then
> # Resolve the location of the 'id' command
> IDEXE="/usr/xpg4/bin/id"
> if [ ! -x "$IDEXE" ]
> then
> IDEXE="/usr/bin/id"
> if [ ! -x "$IDEXE" ]
> then
> echo "Unable to locate 'id'."
> echo "Please report this message along
> with the location of the command on your system."
> exit 1
> fi
> fi
>
> if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
> then
> # Already running as the configured user.
> Avoid password prompts by not calling su.
> RUN_AS_USER=""
> fi
> fi
> Has been extended to become:
> # Check the configured user. If necessary rerun this
> script as the desired user.
> if [ "X$RUN_AS_USER" != "X" ]
> then
> # Resolve the location of the 'id' command
> IDEXE="/usr/xpg4/bin/id"
> if [ ! -x "$IDEXE" ]
> then
> IDEXE="/usr/bin/id"
> if [ ! -x "$IDEXE" ]
> then
> IDEXE="/bin/id"
> if [ ! -x "$IDEXE" ]
> then
> echo "Unable to locate 'id'."
> echo "Please report this
> message along with the location of the command on your system."
> exit 1
> fi
> fi
> fi
>
> if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
> then
> # Already running as the configured user.
> Avoid password prompts by not calling su.
> RUN_AS_USER=""
> fi
> fi
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email