mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2899 - whoami on solaris
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@993322 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9fea8b7245
commit
444356b24f
|
@ -321,7 +321,12 @@ fi
|
||||||
invokeJar(){
|
invokeJar(){
|
||||||
local PIDFILE="$1"
|
local PIDFILE="$1"
|
||||||
local RET="1"
|
local RET="1"
|
||||||
local CUSER="$(whoami)"
|
local CUSER="$(whoami 2>/dev/null)"
|
||||||
|
|
||||||
|
# Solaris fix
|
||||||
|
if ( ! [ $? -eq 0 ] ) ; then
|
||||||
|
local CUSER="$(/usr/ucb/whoami)"
|
||||||
|
fi
|
||||||
|
|
||||||
if ( ! [ -f "${ACTIVEMQ_HOME}/bin/run.jar" ] );then
|
if ( ! [ -f "${ACTIVEMQ_HOME}/bin/run.jar" ] );then
|
||||||
echo "ERROR: '${ACTIVEMQ_HOME}/bin/run.jar' does not exist"
|
echo "ERROR: '${ACTIVEMQ_HOME}/bin/run.jar' does not exist"
|
||||||
|
|
Loading…
Reference in New Issue