Saltstack Official Galera Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

init_bootstrap.sh 210B

1234567891011121314151617
  1. #!/bin/bash
  2. service {{ service.service }} start
  3. counter=60
  4. while [ $counter -gt 0 ]
  5. do
  6. mysql -u root -e"quit"
  7. if [[ $? -eq 0 ]]; then
  8. exit 0
  9. fi
  10. counter=$(( $counter - 1 ))
  11. sleep 2
  12. done
  13. exit 1