commit | 2ff5486f3c9f363558dad6c3c50a6f23839592d9 | [log] [tgz] |
---|---|---|
author | Ales Komarek <mail@newt.cz> | Thu Apr 30 16:31:48 2015 +0200 |
committer | Ales Komarek <mail@newt.cz> | Thu Apr 30 16:31:48 2015 +0200 |
tree | 0d1a6fd4e94fc7ed0f07d234097e91d59d4a17f3 | |
parent | 67ef806c7c37a875310c12ec707b6c6f466fb2c8 [diff] |
fixes
diff --git a/galera/files/slave_bootstrap.sh b/galera/files/slave_bootstrap.sh new file mode 100644 index 0000000..6c2e8e8 --- /dev/null +++ b/galera/files/slave_bootstrap.sh
@@ -0,0 +1,17 @@ +#!/bin/bash + +service mysql start + +counter=20 + +while [ $counter -gt 0 ] +do + service mysql status + if [[ $? -eq 0 ]]; then + exit 0 + fi + counter=$(( $counter - 1 )) + sleep 2 +done + +exit 1 \ No newline at end of file