Skip to content

Commit

Permalink
修改地址
Browse files Browse the repository at this point in the history
  • Loading branch information
林融 authored and 林融 committed Mar 20, 2018
1 parent e29ea24 commit 3dc233f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ then
apt-get >/dev/null 2>&1
[ $? -le '1' ] && ( apt-get update | apt-get -y install curl mtr-tiny virt-what python perl automake autoconf time make gcc gdb )
yum >/dev/null 2>&1
[ $? -le '1' ] && yum -y install which sed curl mtr virt-what python make gcc gcc-c++ gdbautomake autoconf time perl-Time-HiRes perl
[ $? -le '1' ] && yum -y install which epel-release sed curl mtr virt-what python python-pip make gcc gcc-c++ gdbautomake autoconf time perl-Time-HiRes perl
else
apt-get >/dev/null 2>&1
[ $? -le '1' ] && ( apt-get update | apt-get -y install curl mtr-tiny virt-what python )
yum >/dev/null 2>&1
[ $? -le '1' ] && yum -y install which sed curl mtr virt-what python
[ $? -le '1' ] && yum -y install which epel-release sed curl mtr virt-what python python-pip
fi
pip install requests

#要用到的变量
backtime=`date +%Y%m%d`
Expand Down
7 changes: 1 addition & 6 deletions test_code/traceroute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

traceroute()
{
yum install -y epel-release
yum install -y python-pip
pip install requests


wget -q --no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/test/traceroute.py
python -W ignore traceroute.py -l $logfilename -i $IP
python -W ignore ${dir}/91yuntest/traceroute.py -l $logfilename -i $IP
}

0 comments on commit 3dc233f

Please sign in to comment.