v1.2.4.sh 368 B

123456789101112
  1. #!/usr/bin/env bash
  2. if [ ! -f /etc/yum.repos.d/ius.repo ];then
  3. wget -O /tmp/ius.sh http://mi.lacecdn.com/docker/ius.sh
  4. sh /tmp/ius.sh
  5. yum remove -y git
  6. yum install -y git2u
  7. fi
  8. hostname=`hostname`
  9. domain=`php /app/bin/tools.php getDomain`
  10. port=`php /app/bin/tools.php getPort`
  11. curl -s http://${domain}:${port}/v2/tools/report-calculation?key=processOut