sh ${PWD}/create_user.sh
sh ${PWD}/silent_install.sh ${TYPE2} ${VERSION}
;;
*)
usage
;;
esac
fi
3、2RPM包安装及配置(install_rpm.sh)
#!/bin/sh -
#!/usr/bin/sh
#-----------------------------------------------------------------------------------------------
# Install softeare -- Install oracle 11g database software
#
# History: 2018/01/14 zhuwei First release
#-----------------------------------------------------------------------------------------------
# set a safe path before doing anything else
PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH
# This script must be executed as root
RUID=`/usr/bin/id|awk -F\( {print $1}|awk -F\= {print $2}`
if [ ${RUID} != "0" ] ; then
echo "This script must be executed as root"
exit 1
fi
# Display an error and exit
errorExit() {
echo "$@" >&2
exit 1
}
# Display the normal print
displayheader() {
echo -e "\033[32m********************************************************************\033[0m"
echo -e "\033[32m*\033[0m"$@""
echo -e "\033[32m********************************************************************\033[0m"
echo ""
}
# Detect and install oracle rpm package you need
if [ -e "/etc/oracle-release" ] ; then
VERSION1=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}`
VERSION2=`sed -n 1p /etc/issue|awk BEGIN{OFS=""} {print $1,$2,$7}|awk -F. {print $1}`
elif [ -e "/etc/redhat-release" ] ; then
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-62078-3.html
非权力非战略能定而
看看淘宝什么吊样了