You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/10/13 07:00:52 UTC
[jira] Updated: (MRM-968) On the mandrake system, the "id" command
is never found
[ http://jira.codehaus.org/browse/MRM-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MRM-968:
-----------------------------
Fix Version/s: 1.x
> On the mandrake system, the "id" command is never found
> -------------------------------------------------------
>
> Key: MRM-968
> URL: http://jira.codehaus.org/browse/MRM-968
> Project: Archiva
> Issue Type: Bug
> Components: system
> Affects Versions: 1.2
> Environment: Mandriva Linux release 2008.1 (Official) for x86_64
> Reporter: Cotonea
> Priority: Trivial
> Fix For: 1.x
>
>
> 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