karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terrien Jean-Yves (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5034) readlink not fund on HP-UX
Date Mon, 20 Mar 2017 15:06:41 GMT
Terrien Jean-Yves created KARAF-5034:
----------------------------------------

             Summary: readlink not fund on HP-UX
                 Key: KARAF-5034
                 URL: https://issues.apache.org/jira/browse/KARAF-5034
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 3.0.0
         Environment: HP-UX
            Reporter: Terrien Jean-Yves


fail to start karaf readlink not found on HP-UX

solved by addind this code  on scripts

if ["" -eq $(whence readlink)]
then
  DIRNAME=$(dirname "$0")
  PROGNAME=$(basename "$0")
else
  REALNAME=$(readlink -e "$0" > /dev/null 2>&1)
  if [ $? != 0 ]; then
      REALNAME=$0
  fi
  DIRNAME=$(dirname "$REALNAME")
  PROGNAME=$(basename "$REALNAME")
fi




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message