blob: c5e69e1b16767782ea0d0f79b428d0618103cd6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
#
# Postinstallscript written by Ron Record (rr@sco.com)
#
scriptname="$0"
step="$1"
keywords="$2"
pkglist="$3"
# Source in the standard functions library, ccsSetup.sh
. ccsSetup.sh
PKG_DIR=${SSO_SHARED_ROOT}/cntl/packages
# call ccs in subsidiary packages with same arguments we were called with
pkgCodes=`getPackageCode $pkglist`
returnCode=$OK
for pkg in $pkgCodes; do
pkgscript=${PKG_DIR}/${pkg}/ccs
if [ -f "$pkgscript" ]; then
${pkgscript} "${step}" "${keywords}" "${pkglist}"
# exit with the most severe exit code of subsidiary package scripts
case "$?" in
$FAIL) returnCode=$FAIL ;;
$WARN) [ "$returnCode" -eq "$OK" ] && returnCode=$WARN ;;
esac
fi
done
exit $returnCode
|