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 committed by Gitea
parent 35123f8189
commit f963eaacf6

View file

@ -37,11 +37,12 @@ main() {
cat << EOT
Different RAID state detected.
Was:
$check_hpraid_last
$(cat $check_hpraid_last)
Is now:
$check_hpraid_output
$(cat $check_hpraid_output)
EOT
exit 1
cp "$check_hpraid_output" $check_hpraid_last
exit 1
fi
# If check_hpraid returned error, display output, save status and