#!/bin/sh
# @function install gbc core
function InstallGBCCore()
{
    ShowResult "[green]正在安装GBC Core... [/green]" 1
    
    # install
    eval mkdir -p ${_PATH_WEB_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd ${_PATH_WEB_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./gbc-core-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar zxvf ${_PATH_SOFTWARE_}/gbc-core-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval mv gbc-core-* gbccore ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd gbccore ${_SYS_SHOW_INSTALL_DETAILS_}
    eval /bin/sh make.sh ${_SYS_SHOW_INSTALL_DETAILS_}

    eval chmod +x ${_PATH_WEB_}/gbccore/bin/redis/bin/* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval chmod +x ${_PATH_WEB_}/gbccore/bin/beanstalkd/bin/* ${_SYS_SHOW_INSTALL_DETAILS_}

    eval \cp -f ${_PATH_CONFIGS_}/gbccore-conf/* ${_PATH_WEB_}/gbccore/conf/ ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}