INTEGRATION: CWS native115_SRC680 (1.2.26); FILE MERGED
2007/10/29 14:19:05 obr 1.2.26.3: #i83083# fixed wrong path on Linux 2007/10/17 12:10:09 obr 1.2.26.2: #150889# now works on Linux as well 2007/10/17 10:45:44 obr 1.2.26.1: #150890# retry at next office launch if stclient not found
This commit is contained in:
parent
ed24c79123
commit
8bc1236340
1 changed files with 16 additions and 17 deletions
|
@ -4,7 +4,11 @@
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
|
||||||
STCLIENT=/usr/bin/stclient
|
if [ `uname -s` = "SunOS" ]; then
|
||||||
|
STCLIENT=/usr/bin/stclient
|
||||||
|
else
|
||||||
|
STCLIENT=/opt/sun/servicetag/bin/stclient
|
||||||
|
fi
|
||||||
|
|
||||||
TARGET_URN=
|
TARGET_URN=
|
||||||
PRODUCT_NAME=
|
PRODUCT_NAME=
|
||||||
|
@ -30,26 +34,21 @@ do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -x "$STCLIENT" ]; then
|
[ -x "$STCLIENT" ] || exit 1
|
||||||
INSERT="false"
|
|
||||||
|
|
||||||
TEST=`${STCLIENT} -f -t ${TARGET_URN}`
|
TEST=`${STCLIENT} -f -t ${TARGET_URN}` || exit 1
|
||||||
|
[ "${TEST}" = "No records found" ] || exit 0
|
||||||
|
|
||||||
if [ "${TEST}" = "No records found" ]; then
|
uname=`uname -p`
|
||||||
INSERT="true"
|
zone="global"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${INSERT}" = "true" ]; then
|
if [ `uname -s` = "SunOS" ]; then
|
||||||
if [ `uname -s` = "SunOS" ]; then
|
if [ -x /usr/bin/zonename ]; then
|
||||||
uname=`uname -p`
|
zone=`/usr/bin/zonename`
|
||||||
zone="global"
|
|
||||||
if [ -x /usr/bin/zonename ]; then
|
|
||||||
zone=`/usr/bin/zonename`
|
|
||||||
fi
|
|
||||||
|
|
||||||
output=`${STCLIENT} -a -p "${PRODUCT_NAME}" -e "${PRODUCT_VERSION}" -t "${TARGET_URN}" -S "${PRODUCT_SOURCE}" -P "${PARENT_PRODUCT_NAME}" -m "Sun Microsystems, Inc." -A ${uname} -z global`
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
output=`"${STCLIENT}" -a -p "${PRODUCT_NAME}" -e "${PRODUCT_VERSION}" -t "${TARGET_URN}" -S "${PRODUCT_SOURCE}" -P "${PARENT_PRODUCT_NAME}" -m "Sun Microsystems, Inc." -A "${uname}" -z "${zone}"` || exit 1
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue