#!/usr/bin/env bash if [ ! -f /etc/yum.repos.d/ius.repo ];then wget -O /tmp/ius.sh http://mi.lacecdn.com/docker/ius.sh sh /tmp/ius.sh yum remove -y git yum install -y git2u fi hostname=`hostname` domain=`php /app/bin/tools.php getDomain` port=`php /app/bin/tools.php getPort` curl -s http://${domain}:${port}/v2/tools/init?key=report