mirror of
https://github.com/rancher/os.git
synced 2025-06-30 00:31:49 +00:00
13 lines
240 B
Bash
13 lines
240 B
Bash
|
#!/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
|