Problems with install sript of domino 6.0

"Dirk Groesser" <[email protected]>
Newsgroups gmane.linux.suse.domino
Message-ID <002c01c27216$e5a66710$9b01a8c0@abenteuerland>
 
Here is the script:
------------------------------------------------------------------------
--------------------------------------------
 
## Copyright (c) 1999, Lotus Development Corporation.
## All Rights Reserved.
 

CdPath() {
 
 # presumes CdPathRoot is set to the real absolute path of the 
 # kit (dist) root; the dir containing this file 
 # (not necessarily the root of the cd)
 
 # in:  $1: relative (to CdPathRoot) representative path of 
 #    target file 
 #   $2: (optional) if "noescape", a backslash char will not be used
 #    to escape a semicolon in the filename
 # returns: absolute real path of target, or 
 #   ${CdPathRoot}/${1} if not found
 
    targpath=$1
 
 # try as-is
 testpath=${CdPathRoot}/${targpath}
    if [ -r $testpath ]; then
        $echo $testpath
        return
    fi
 
 # try upper-case
    testpath=${CdPathRoot}/`$echo $targpath | $tr [a-z] [A-Z]`
    if [ -r $testpath ]; then
        $echo $testpath
        return
    fi
 
 # try lower-case
    testpath=${CdPathRoot}/`$echo $targpath | $tr [A-Z] [a-z]`
    if [ -r $testpath ]; then
        $echo $testpath
        return
    fi
 
 # try upper-case with version ";1" appended
    if [ -r ${testpath}\;1 ]; then
  if [ "$2" = "noescape" ]; then
   $echo "${testpath};1"
  else 
         $echo ${testpath}\\\;1
  fi
        return
    fi
 
 # didn't find it
    $echo ${CdPathRoot}/${targpath}
}
 

#
# BEGIN script
#
 
PATH=/usr/bin:/bin:/usr/sbin:${PATH}
export PATH
 
tr=tr
basename=basename
sed=sed
pwd=pwd
uname=uname
dirname=dirname
echo=echo
umask=umask
 

# determine NUI_ARCH
#
if [ `$uname` = AIX ]; then
    NUI_ARCH=aix
elif [ `$uname` = HP-UX ]; then
    NUI_ARCH=hpux
elif [ `$uname` = SunOS ]; then
    if [ `$uname -p` = sparc ]; then
        NUI_ARCH=sol
 else
  NUI_ARCH=solx86
    fi
elif [ `$uname` = Linux ]; then
 NUI_ARCH=linux
elif [ `$uname` = OS/390 ]; then
    NUI_ARCH=os390
elif [ `$uname` = z/OS ]; then 
    NUI_ARCH=os390
elif [ `$uname` = OS400 ]; then
 # This is a virtuall install done at kitting time for os400.  Customer
never runs
 # this script, so set desired values for kitting.
 NUI_ARCH=os400
 NUI_NOTROOT=1 # Don't have to be root to run
 NUI_DEV=1     # Dump output to stdout instead of error log
 export NUI_NOOPTLOTUS=1  # Don't try to update anything in /opt/lotus
(done in NIC.pm)
 export NUI_DBG_BE=1     # debug mode
fi
export NUI_ARCH
 

# change sys cmd defs as necessary per-platform
#
if [ "$NUI_ARCH" = linux ]; then
 echo="echo -e"
elif [ "$NUI_ARCH" = "hppa" ]; then
 tr="$tr -A"
fi
 

userdir=`$pwd`
 
cd `$dirname $0`
NUI_DISTROOT=`$pwd`
export NUI_DISTROOT
CdPathRoot=$NUI_DISTROOT
 
thisfile=`$basename $0`
thisfile=`$echo $thisfile | $sed -e 's/;1$//'`
torun="tools/lib/${thisfile}.pl"
 
eval ". `CdPath tools/nls/${thisfile}.sh`"
 
# "Install Program" message
$echo $txt3
 

if [ -z "$NUI_ARCH" ]; then
    $echo "${txt1}`$uname`${txt2}"
    exit 1
fi
 

# check root
if [ "$NUI_ARCH" != os390 ];then
if [ -z "$NUI_NOTROOT" -a `id | sed -e 's/^[^(]*(//' -e 's/).*$//'` !=
"root" ]; then
 # !!! 
 $echo "You must be root to run the install program.\n"
 exit 1;
fi
else
if [ -z "$NUI_NOTROOT" -a `id -u` != 0 ]; then
 # !!! 
 $echo "You must be root (uid=0) to run the install program.\n"
 exit 1;
fi
fi
 
umaskvalue=`$umask`;
 
if [ $umaskvalue != 0022 ]; then
 cmd="umask 22"
 eval $cmd 
fi
 
while [ "$1" = "-perl" ]; do
 shift
 perlswitch=$1
 shift
done
 

PERL5LIB="`CdPath tools/lib`:`CdPath tools/lib/perl5`:`CdPath
tools/nls`"
export PERL5LIB
 

if [ `grep osystem sets/data/nui.cfg |sed -e 's/osystem=//'` !=
"$NUI_ARCH" ]; then
    
    echo  "$txt41"
    echo  "$txt42`grep osystem sets/data/nui.cfg |sed -e 's/osystem=//'`
$txt43 $NUI_ARCH "
    echo  "$txt44"
    echo  "$txt45"
    echo  ""
    exit 1
fi
 
if [ "$NUI_ARCH" = linux ];then
 PERL=`which perl`
 if [ $? -ne 0 ]; then
  PERL=`which Perl`
  if [ $? -ne 0 ]; then
   $echo $txt5
   exit 1
  fi
 fi
else
 perltotest=`CdPath tools/bin/$NUI_ARCH/Perl noescape`
# if [ ! -r $perltotest ]; then
#  $echo $txt4
#  exit 1
# fi
 PERL=`CdPath tools/bin/$NUI_ARCH/Perl`
fi
export PERL
 
# ensure current dir is same as users for relative path args
cd $userdir
 
# do it
#
if [ -z "$NUI_DEV" ]; then
 StdErrRedirect="2>/tmp/nuish.err"
fi
cmd="$PERL $perlswitch `CdPath $torun` $* $StdErrRedirect"
eval $cmd
 
 

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Saturday, October 12, 2002 5:02 PM
To: Dirk Groesser
Cc: [email protected]
Subject: Re: [suse-domino] Problems with install sript of domino 6.0



do a 

cat install 

and post the installscript here, so we can see what might be wrong with
it ;).. its just a shell script 

Mit freundlichen Gruessen

Sascha Reißner
___________________________________

SOFTWERK Innovative Technologien
___________________________________

SOFTWERK-Veranstaltungen:

14.10.2002 - PC-Infotag für Anfänger 
21.10.2002 - Internet-Infotag für Anfänger 
29.10.2002 - Migration auf Domino 6 - Client, Administration, Server
30.10.2002 - Migration auf Domino 6 - Application Development

Weitere Infos unter http://www.softwerk.de/events

Fronmuellerstr. 71
90763 Fuerth
GERMANY
Fon: +49 911 99773-0
Fax: +49 911 997777-0
Web: http://www.softwerk.de
___________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.