6 # Need to check diskless service install and make sure use the correct unpkg
8 DISKLESS_SRVC=`echo $$BASEDIR | /usr/bin/grep export/Solaris_[1-9][0-9]/usr_$${ARCH}.all`
9 if [ "$$DISKLESS_SRVC" ]; then
10 UNOPKG=/export/Solaris_11/usr_`uname -p`.allPRODUCTDIRECTORYNAME/program/unopkg
11 POSTRUN=$$PKG_INSTALL_ROOT/usr_`uname -p`.all/usr/lib/postrun
12 CLIENT_BASEDIR=$$PKG_INSTALL_ROOT/usr_$${ARCH}.all
14 UNOPKG=$$BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg
15 POSTRUN=$$PKG_INSTALL_ROOT/usr/lib/postrun
17 # Use postrun command on Solaris where available (OpenSolaris)
18 if [ -x $$POSTRUN ]; then
19 ( echo "test -x \"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg\" || exit 0"
21 echo "\"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg\" sync"
22 echo "find \"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/share/prereg/bundled\" -type f -exec chmod 644 {} \\;"
23 ) | $$POSTRUN -b -c UNOPKG
24 if [ "$$?" != "0" ]; then
25 echo "\nERROR: Installation of UNO extensions"
26 echo " through $$POSTRUN failed."
30 # No postrun available, try running unopkg directly
32 find "$$BASEDIR/PRODUCTDIRECTORYNAME/share/prereg/bundled" -type f -exec chmod 644 {} \;
33 if [ "$$?" != "0" ]; then
34 echo "\nERROR: Installation of UNO extensions failed."
35 test "$$BASEDIR" = "$$CLIENT_BASEDIR" || echo "ERROR: alternate root install requires SUNWpostrun package to be installed"
36 echo 'ERROR: Make sure the runtime requirements (operating system, patch level, architecture) are met.'
46 # Use postrun command on Solaris where available (OpenSolaris)
47 if [ -x $$PKG_INSTALL_ROOT/usr/lib/postrun ]; then
48 ( echo "test -x \"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg\" || exit 0"
49 echo "cd \"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/program\""
51 echo "\"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg\" sync"
52 echo "find \"$$CLIENT_BASEDIR/PRODUCTDIRECTORYNAME/share/prereg/bundled\" -type f -exec chmod 644 {} \\;"
53 ) | $$PKG_INSTALL_ROOT/usr/lib/postrun -c UNOPKG
55 # No postrun available, try running unopkg directly
56 test -x $$BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg || exit 0
57 "$$BASEDIR/PRODUCTDIRECTORYNAME/program/unopkg" sync
58 echo "find \"$$BASEDIR/PRODUCTDIRECTORYNAME/share/prereg/bundled\" -type f -exec chmod 644 {} \\;"
59 if [ "$$?" != "0" ]; then
60 echo "\nERROR: Removal of UNO extension failed."
61 test "$$BASEDIR" = "$$CLIENT_BASEDIR" || echo "ERROR: alternate root uninstall requires SUNWpostrun package to be installed"
62 echo 'ERROR: Make sure the runtime requirements (operating system, patch level, architecture) are met.'
77 if [ -x "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/program/unopkg" ]; then
78 "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/program/unopkg" sync
79 if [ "$$?" != "0" ]; then
80 echo "ERROR: Registration of extensions failed!"
83 echo "SUCCESS: unopkg returns successful!"
85 find "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/share/prereg/bundled" -type f -exec chmod 644 {} \;
94 if [ -x "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/program/unopkg" ]; then
95 "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/program/unopkg" sync
96 if [ "$$?" != "0" ]; then
97 echo "ERROR: Registration of extensions failed!"
100 echo "SUCCESS: unopkg returns successful!"
102 find "$$RPM_INSTALL_PREFIX/PRODUCTDIRECTORYNAME/share/prereg/bundled" -type f -exec chmod 644 {} \;
112 if [ -x "PRODUCTDIRECTORYNAME/program/unopkg" ]; then
113 "PRODUCTDIRECTORYNAME/program/unopkg" sync
114 if [ "$$?" != "0" ]; then
115 echo "ERROR: Registration of extensions failed!"
118 echo "SUCCESS: unopkg returns successful!"
120 find "PRODUCTDIRECTORYNAME/share/prereg/bundled" -type f -exec chmod 644 {} \;
129 if [ -x "PRODUCTDIRECTORYNAME/program/unopkg" ]
131 "PRODUCTDIRECTORYNAME/program/unopkg" sync
132 if [ "$$?" != "0" ]; then
133 echo "ERROR: Registration of extensions failed!"
136 echo "SUCCESS: unopkg returns successful!"
138 find "PRODUCTDIRECTORYNAME/share/prereg/bundled" -type f -exec chmod 644 {} \;