revision-id: 01074248221b59d4babba43e4696fec53256ba32 () parent(s): 7ce843c222281d070e42de47a271b7f999b4636b author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2019-03-12 19:58:41 +0100 message: Better setup scripts, wait_for_file.sh needed by perf run --- setup.sh => setup-fbmysql.sh | 0 setup-os.sh | 5 +++++ wait_for_file.sh | 17 +++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/setup.sh b/setup-fbmysql.sh similarity index 100% rename from setup.sh rename to setup-fbmysql.sh diff --git a/setup-os.sh b/setup-os.sh new file mode 100755 index 0000000..ad10a81 --- /dev/null +++ b/setup-os.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +./setup-server/setup-os-ubuntu.sh +./setup-server/setup-sysbench-ubuntu.sh + diff --git a/wait_for_file.sh b/wait_for_file.sh new file mode 100755 index 0000000..687f8f6 --- /dev/null +++ b/wait_for_file.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +FILE=$1 + +if [[ "x${FILE}y" == "xy" ]] ; then + echo "Usage: $0 filename" + exit 1 +fi + +while true ; do + if [[ -f $FILE ]] ; then + echo "Wait for $FILE finished" + exit 0 + fi + sleep 3 +done +