evolinux-base: check_hpraid.sh: Fix RAID state detection

This commit is contained in:
Benoît S. 2020-06-04 17:23:14 +09:00
parent 7b97702f15
commit 91dda2e1a2

View file

@ -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