代码拉取完成,页面将自动刷新
同步操作将从 zhq1/vos 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
echo "Starting install VOS3000 System"
IP=www.kazoo.com.cn
FILE=vos3000.2.1.2.0.tar.gz
VOS2009_FILE=vos2009/$FILE
URL=http://$IP/$VOS2009_FILE
echo $URL
OS=`head -n 1 /etc/issue |awk '{ print $3}'`
echo $OS
check_version()
{
if [ "$OS" != 5.5 ]
then
echo "CentOS version must be 5.5"
exit 0
fi
}
yum_install()
{
yum -y install xulrunner.i686 libXtst.i686 glibc.i686 glibc-devel.i686
}
download_vos()
{
wget $URL
tar -xvzf $FILE
}
install_rpm()
{
rpm -ivh jdk.i586.rpm
rpm -ivh MySQL-server-community-5.0.51a-0.rhel5.i386.rpm --nodeps --force
rpm -ivh MySQL-client-community-5.0.51a-0.rhel5.i386.rpm --nodeps --force
rpm -ivh perl-DBI-1.40-5.i386.rpm --nodeps --force
mysql -uroot -e 'create database vos3000db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
}
tar_tomcat()
{
PWD=`pwd`
mv $PWD/apache-tomcat-5.5.15.tar.bz2 /usr
tar -xvjf /usr/apache-tomcat-5.5.15.tar.bz2 -C /usr
}
java_home()
{
cp -f $PWD/profile /etc/profile
}
install_vos()
{
source /etc/profile
PWD=`pwd`
rpm -ivh $PWD/emp-2.1.2-0.noarch.rpm
rpm -ivh $PWD/ivr-2.1.2-0.i586.rpm
rpm -ivh $PWD/mbx2009-2.1.2-0.i586.rpm
rpm -ivh $PWD/vos2009-2.1.2-0.i586.rpm
LIBJVM=/usr/java/jdk1.5.0_08/jre/lib/i386/client/libjvm.so
ln -s $LIBJVM /lib/libjvm.so
}
make_license()
{
mkdir -p /usr/kunshi/license
CRACK_FILE=$PWD/vos20092120.bin
CRACK_LOG=$PWD/crackvos.log
$PWD/vos20092120.bin >$PWD/crackvos.log
JDK_TIME=`sed -n 12p $CRACK_LOG`
VOS_TIME=`sed -n 10p $CRACK_LOG`
RPM_TIME=`sed -n 8p $CRACK_LOG`
IP_ADDRESS=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
MAC=`ifconfig | grep 'HWaddr'|cut -d: -f3`-`ifconfig | grep 'HWaddr'|cut -d: -f3`-`ifconfig | grep 'HWaddr'|cut -d: -f4`-`ifconfig | grep 'HWaddr'|cut -d: -f5`-`ifconfig | grep 'HWaddr'|cut -d: -f6`-`ifconfig | grep 'HWaddr'|cut -d: -f7`
echo "IP_ADDRESS="$IP_ADDRESS
echo "MAC="$MAC
echo "JDK_TIME="$JDK_TIME
echo "VOS_TIME="$VOS_TIME
echo "RPM_TIME="$RPM_TIME
rm -rf $CRACK_LOG
rm -rf $PWD/$FILE
}
check_version
yum_install
download_vos
install_rpm
tar_tomcat
java_home
source /etc/profile
install_vos
make_license
echo " Congratulation! VOS2009 has been installed successfully!"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。