mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Typos
This commit is contained in:
parent
5094fbee72
commit
a315eacfa7
1 changed files with 3 additions and 3 deletions
|
@ -83,15 +83,15 @@ LOAD_LXC_SNAPSHOT () {
|
|||
CLEAN_SWAPFILES
|
||||
|
||||
local retry=0
|
||||
while [[ $retry -lt 5 ]]
|
||||
while [[ $retry -lt 10 ]]
|
||||
do
|
||||
LXC_STOP $LXC_NAME || true
|
||||
lxc restore $LXC_NAME $snapname && break || retry+=1
|
||||
log_warning "Failed to stop LXC and restore snapshot? Retrying in 10 sec ..."
|
||||
log_warning "Failed to stop LXC and restore snapshot? Retrying in 20 sec ..."
|
||||
sleep 20
|
||||
done
|
||||
|
||||
if [[ $retry -ge 3 ]]
|
||||
if [[ $retry -ge 10 ]]
|
||||
then
|
||||
log_error "Failed to restore snapshot ? The next step may miserably crash because of this ... if this happens to often, maybe restarting the LXD daemon can help ..."
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue