chore: improve code comments

This commit is contained in:
Josh Sherman 2018-10-29 18:30:16 -05:00
parent 7a8c5123a3
commit 42501e1d5f
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

3
run.sh
View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# Skip prompts so we can run unattended
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
@ -15,6 +16,7 @@ apt-get update
apt-get upgrade -y apt-get upgrade -y
apt-get install sysbench nginx mysql-server python -y apt-get install sysbench nginx mysql-server python -y
# Grabs the major version of sysbench so we can use the correct parameters for MySQL
SYSBENCH_MAJOR_VERSION=$(sysbench --version | cut -d ' ' -f 2 | cut -d '.' -f 1) SYSBENCH_MAJOR_VERSION=$(sysbench --version | cut -d ' ' -f 2 | cut -d '.' -f 1)
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
@ -51,4 +53,5 @@ fi
./speedtest-cli --server=16089 > results/speedtest2.log ./speedtest-cli --server=16089 > results/speedtest2.log
./speedtest-cli --server=16089 > results/speedtest3.log ./speedtest-cli --server=16089 > results/speedtest3.log
# Wraps it all up in a nice package
tar -zcvf "results-$PROVIDER.tgz" results tar -zcvf "results-$PROVIDER.tgz" results