INTEGRATION: CWS nativefixer1 (1.2.2); FILE MERGED

2004/11/11 17:21:08 is 1.2.2.2: #i34221# langpacks only as root
2004/10/22 12:18:52 is 1.2.2.1: #i34221# BASEDIR -> basedir
This commit is contained in:
Oliver Bolte 2004-11-18 07:20:00 +00:00
parent 8ee05b737d
commit 84926d6438

View file

@ -1,4 +1,13 @@
#!/bin/sh
MYUID=`id | sed "s/(.*//g" | sed "s/.*=//"`
if [ $MYUID -ne 0 ]
then
echo You need to have super-user rights to install this language package
exit 1
fi
linenum=LINENUMBERPLACEHOLDER
more << "EOF"
@ -63,7 +72,7 @@ mkdir $outdir
#fi
trap 'rm -rf $outdir; exit 1' HUP INT QUIT TERM
echo "Unpacking..."
echo "Unpacking and installing..."
#if [ -x /usr/bin/sum ] ; then
# echo "Checksumming..."
@ -94,7 +103,7 @@ case $platform in
SunOS)
tail +$linenum $0 | gunzip | (cd $outdir; tar xvf -)
adminfile=$outdir/admin.$$
echo "BASEDIR=$PRODUCTINSTALLLOCATION" > $adminfile
echo "basedir=$PRODUCTINSTALLLOCATION" > $adminfile
/usr/sbin/pkgadd -d $outdir -a $adminfile PACKAGENAMEPLACEHOLDER
;;