mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-11 01:27:17 +00:00
keep trying to umount 3 times with 10 seconds between tries
This commit is contained in:
parent
3198923bbc
commit
4a4ad258c6
@ -14,10 +14,12 @@ fi
|
|||||||
|
|
||||||
ehdd/umount.sh
|
ehdd/umount.sh
|
||||||
code=$?
|
code=$?
|
||||||
if [ $code -eq 2 ]; then
|
tries=1
|
||||||
|
while [ $code -eq 2 -a $tries -le 3 ]; do
|
||||||
echo "Trying again in 10 seconds..."
|
echo "Trying again in 10 seconds..."
|
||||||
sleep 10
|
sleep 10
|
||||||
ehdd/umount.sh
|
ehdd/umount.sh
|
||||||
code=$?
|
code=$?
|
||||||
fi
|
let tries+=1
|
||||||
|
done
|
||||||
exit $code
|
exit $code
|
||||||
|
Loading…
Reference in New Issue
Block a user