#!/bin/bash
#小菜鸟
#挂机
#版本:1.0
#游戏服务器部署
#基础环境:MYSQL数据库svn客户端需部署才能运行此脚本
####################################################
if [ "$UID" = "0" ]
then
echo "game server install"
else
exit 1
fi
read -p "Please create the storage game server directory:" directory
mkdir /application/$directory
path="/application/$directory"
svn co http://192.168.0.5:8080/svn/Tools/ops/guaji/game_server/game $path --username baisc --password bsc123 > /dev/null
if [ "$?" = "0" ]
then
echo "ok"
else
exit 1
fi
########################服务器配置##################################
echo "game_server configure"
configure="/application/$directory/config/b