mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Fix bug in fsck check
This commit is contained in:
parent
139a1705dd
commit
0ec349fbf4
|
@ -65,8 +65,9 @@ set +e
|
||||||
touch /tmp/repairing_drive
|
touch /tmp/repairing_drive
|
||||||
for d in /dev/sd*1; do
|
for d in /dev/sd*1; do
|
||||||
echo "Repairing drive $d ...";
|
echo "Repairing drive $d ...";
|
||||||
RC=$(fsck -y $d > /tmp/fsck_results 2>&1)
|
fsck -y $d > /tmp/fsck_results 2>&1
|
||||||
if [ $RC -ne 0 ]; then
|
RC=$?
|
||||||
|
if [ "$RC" -ne 0 ]; then
|
||||||
touch /tmp/fsck_error
|
touch /tmp/fsck_error
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user