bug fix: snappymail on ubuntu 24
This commit is contained in:
parent
c4c853ea41
commit
a932613827
|
|
@ -415,7 +415,7 @@ do
|
|||
log_error "Command failed after 50 retries: $1"
|
||||
exit 2
|
||||
else
|
||||
$1 && break || {
|
||||
eval "$1" && break || {
|
||||
echo -e "\n$1 has failed for $i times\nWait and try again...\n"
|
||||
log_warning "Command failed, retry $i/50: $1"
|
||||
# Exponential backoff: 1s, 2s, 4s, 8s, then cap at 10s
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ Retry_Command() {
|
|||
# shellcheck disable=SC2034
|
||||
for i in {1..50};
|
||||
do
|
||||
$1 && break || echo -e "\n$1 has failed for $i times\nWait for 3 seconds and try again...\n"; sleep 3;
|
||||
eval "$1" && break || echo -e "\n$1 has failed for $i times\nWait for 3 seconds and try again...\n"; sleep 3;
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue