mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
bug fix: snappymail on ubuntu 24
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user