state.sh 240 B

12345678910111213
  1. #!/bin/bash
  2. set -x
  3. if [ "$(ros config get rancher.state.mdadm_scan)" = "true" ]; then
  4. mdadm --assemble --scan
  5. fi
  6. ros config get rancher.state.script > config.sh
  7. if [ -s config.sh ]; then
  8. chmod +x config.sh
  9. exec ./config.sh
  10. fi