buildCheckInstall.txt 12-01-2001 Bikle ---------------------- This file displays a script I wrote named checkinstall. When we build a pkg, Solaris allows us to attach a variety of shell scripts to that pkg. These shell scripts are run at times determined by the name of the script. Through some reading I discovered that I could create a script named 'checkinstall' (residing in the parent directory of software I intend to install) which would allow me to check various things about the host I intended to install Oracle on. This functionality gives the operator of the pkgadd utility the option of aborting the pkgadd. The checkinstall script could be sophisticated enough to provide information to the pkgadd operator to help him decide if aborting pkgadd would be a wise decision. Another piece of information I picked up about pkgadd's interaction with checkinstall is that pkgadd runs checkinstall as user 'nobody' which is a very low privilege level. A copy of the checkinstall I wrote is pasted below: #! /bin/sh # checkinstall # History: # 08-23-2001 Bikle Creation ######################################################################## # This script checks that the host is ready for Oracle software. # Check that /oracle is mounted with at least 3gb of space # If it is not mounted, exit. # If it is not large enough, complain. /bin/df -b /oracle # Check error status of above command, 0 is a good status case $? in 0) echo /oracle is mounted;; *) # The above command issued an error status, deal with it here. cat <