mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34: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
|
||||
for d in /dev/sd*1; do
|
||||
echo "Repairing drive $d ...";
|
||||
RC=$(fsck -y $d > /tmp/fsck_results 2>&1)
|
||||
if [ $RC -ne 0 ]; then
|
||||
fsck -y $d > /tmp/fsck_results 2>&1
|
||||
RC=$?
|
||||
if [ "$RC" -ne 0 ]; then
|
||||
touch /tmp/fsck_error
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user