- 论坛徽章:
- 0
|
看了下sun cluster的安装脚本里面有下面的语句:\r\n\r\ninstall_installer() {\r\n if [ ! -d ${installer_pkg_location} ]; then\r\n echo \"Could not locate the installer package location : ${installer_pkg_location}\"\r\n exit 1\r\n fi\r\n installer_pkg_name=`$allOS_lS $installer_pkg_location | grep entsyssc32u1i`\r\n if [ -z \"${installer_pkg_name}\" ]; then\r\n echo \"Could not locate installer package in the location : ${installer_pkg_location}\"\r\n exit 1\r\n fi\r\n if [ \"${kernelName}\" = \"SunOS\" ] ; then\r\n #echo \"Adding the installer package : ${installer_pkg_name}\"\r\n ${pkgaddcmd} ${alt_root_option} -n -a $admin_file -d ${installer_pkg_location} ${installer_pkg_name} > /dev/null 2>&1\r\n fi\r\n if [ \"${kernelName}\" = \"Linux\" ] ; then\r\n #echo \"Adding the installer package : ${installer_pkg_name}\"\r\n rpm_name=`${rpmcmd} -qp --queryformat \'%{NAME}\' ${installer_pkg_location}/${installer_pkg_name}`\r\n ${rpmcmd} -e ${rpm_name} > /dev/null 2>&1\r\n ${rpmcmd} -i ${installer_pkg_location}/${installer_pkg_name} > /dev/null 2>&1\r\n installer_pkg_name=`${rpmcmd} -qp --queryformat \'%{NAME}\' ${installer_pkg_location}/${installer_pkg_name}`\r\n fi\r\n#hpux-dev\r\n if [ \"${kernelName}\" = \"HP-UX\" ] ; then\r\n #echo \"Adding the installer package : ${installer_pkg_name}\"\r\n ${HPUX_swinstall} -s ${installer_pkg_location}/${installer_pkg_name} ${installer_pkg_name} > /dev/null 2>&1 \r\n if [ $? != 0 ]; then\r\n echo \"There is some problem with SDUX swinstall command, please check /var/adm/sw/swinstall.log file for details\"\r\n echo \"Exiting installer.\"\r\n exit 1\r\n fi\r\n fi\r\n如果不支持linux和hp unix怎么会有这些语句在里面? |
|