forked from evolix/ansible-roles
evolinux-base: check_hpraid.sh: Fix RAID state detection
This commit is contained in:
parent
35123f8189
commit
f963eaacf6
|
@ -37,11 +37,12 @@ main() {
|
||||||
cat << EOT
|
cat << EOT
|
||||||
Different RAID state detected.
|
Different RAID state detected.
|
||||||
Was:
|
Was:
|
||||||
$check_hpraid_last
|
$(cat $check_hpraid_last)
|
||||||
Is now:
|
Is now:
|
||||||
$check_hpraid_output
|
$(cat $check_hpraid_output)
|
||||||
EOT
|
EOT
|
||||||
exit 1
|
cp "$check_hpraid_output" $check_hpraid_last
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If check_hpraid returned error, display output, save status and
|
# If check_hpraid returned error, display output, save status and
|
||||||
|
|
Loading…
Reference in a new issue