| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | #!/usr/bin/env shset -echeck(){    yes=`which $1 | wc -l`    echo $yes}# dockerstatus=`check docker`if [ "$status" = 0 ]; then	curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyunfimkdir -p /etc/dockertee /etc/docker/daemon.json <<-'EOF'{  "registry-mirrors": ["https://vwypw7yj.mirror.aliyuncs.com"]  ,"insecure-registries" : ["docker.dever.cc"]}EOFservice docker restartchmod -R +x src/*.pychmod -R +x src/shellchmod -R 777 container/share/basepath=$(cd `dirname $0`; pwd)ln -sf $basepath/src/dm.py /usr/bin/dm && chmod +x /usr/bin/dmln -sf $basepath/src/ds.py /usr/bin/ds && chmod +x /usr/bin/dsln -sf $basepath/src/dp.py /usr/bin/dp && chmod +x /usr/bin/dpln -sf $basepath/src/dpc.py /usr/bin/dpc && chmod +x /usr/bin/dpcln -sf $basepath/src/dever.py /usr/bin/dever && chmod +x /usr/bin/deverln -sf $basepath/src/dgit.py /usr/bin/dgit && chmod +x /usr/bin/dgit# python-pippipstatus=`check pip`if [ "$pipstatus" = 0 ]; then	wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -rf get-pip.pyfi# python-daemon 用不到了#pip install python-daemon#pip install redisyumstatus=`check yum`if [ "$yumstatus" = 0 ]; then	apt install python-geventelse	yum install python-geventfi#python $basepath/src/daemon.py &docker versionecho 'install success!'
 |