mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +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
|
||||
code=$?
|
||||
if [ $code -eq 2 ]; then
|
||||
tries=1
|
||||
while [ $code -eq 2 -a $tries -le 3 ]; do
|
||||
echo "Trying again in 10 seconds..."
|
||||
sleep 10
|
||||
ehdd/umount.sh
|
||||
code=$?
|
||||
fi
|
||||
let tries+=1
|
||||
done
|
||||
exit $code
|
||||
|
Loading…
Reference in New Issue
Block a user