mirror of
https://github.com/rancher/os.git
synced 2025-06-29 08:16:49 +00:00
13 lines
240 B
Bash
Executable File
13 lines
240 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
if [ "$(ros config get rancher.state.mdadm_scan)" = "true" ]; then
|
|
mdadm --assemble --scan
|
|
fi
|
|
|
|
ros config get rancher.state.script > config.sh
|
|
if [ -s config.sh ]; then
|
|
chmod +x config.sh
|
|
exec ./config.sh
|
|
fi
|