mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Typo :|
This commit is contained in:
parent
ba3a19cfcd
commit
5094fbee72
1 changed files with 2 additions and 2 deletions
|
@ -84,12 +84,12 @@ LOAD_LXC_SNAPSHOT () {
|
||||||
|
|
||||||
local retry=0
|
local retry=0
|
||||||
while [[ $retry -lt 5 ]]
|
while [[ $retry -lt 5 ]]
|
||||||
then
|
do
|
||||||
LXC_STOP $LXC_NAME || true
|
LXC_STOP $LXC_NAME || true
|
||||||
lxc restore $LXC_NAME $snapname && break || retry+=1
|
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 10 sec ..."
|
||||||
sleep 20
|
sleep 20
|
||||||
fi
|
done
|
||||||
|
|
||||||
if [[ $retry -ge 3 ]]
|
if [[ $retry -ge 3 ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue