mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Apparently that stupid 'In use' bug is a glitch and can be temporarily solved by restarting the LXD daemon :|
This commit is contained in:
parent
6024170dd5
commit
865bb6223b
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ LOAD_LXC_SNAPSHOT () {
|
||||||
LXC_STOP $LXC_NAME || true
|
LXC_STOP $LXC_NAME || true
|
||||||
lxc restore $LXC_NAME $snapname && break || retry_lxc=$(($retry_lxc+1))
|
lxc restore $LXC_NAME $snapname && break || retry_lxc=$(($retry_lxc+1))
|
||||||
log_warning "Failed to restore snapshot? Retrying in 20 sec ..."
|
log_warning "Failed to restore snapshot? Retrying in 20 sec ..."
|
||||||
|
if [[ ${retry_lxc} -ge 3 ]]
|
||||||
|
then
|
||||||
|
log_error "If this keeps happening, restarting the LXD daemon might help :| ..."
|
||||||
|
fi
|
||||||
sleep 20
|
sleep 20
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue