GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • sh
  • pre
  • auto.sh
  • 005eca6e   faet: 测试服配置和脚本 Browse Code »
    王家文
    2024-04-10 12:01:52 +0800  
auto.sh 409 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# !/bin/bash
if [ ! -n "$1" ]; then
   echo "params error"
   exit 1
elif [ $1 != "start" -a $1 != "restart" -a $1 != "stop" ]; then
   echo "please input start|stop|restart"
   exit 2
fi


sh /sh/apigame/git.sh
if [ $? -ne 0 ];then
   exit 3
fi

binname=apigame
sh /sh/apigame/build.sh ${binname}
if [ $? -ne 0 ];then
   exit 1
fi


sleep 1s
sh /sh/apigame/$apigame.sh ${1}
if [ $? -ne 0 ];then
   exit 1
fi