chore: improve code comments
This commit is contained in:
parent
7a8c5123a3
commit
42501e1d5f
1 changed files with 3 additions and 0 deletions
3
run.sh
3
run.sh
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Skip prompts so we can run unattended
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
@ -15,6 +16,7 @@ apt-get update
|
|||
apt-get upgrade -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)
|
||||
|
||||
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/speedtest3.log
|
||||
|
||||
# Wraps it all up in a nice package
|
||||
tar -zcvf "results-$PROVIDER.tgz" results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue