fix restore

This commit is contained in:
Kay0u 2024-03-10 21:45:24 +01:00
parent 2e0a408753
commit 03de0719dc
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -111,7 +111,7 @@ restore_snapshot()
while [[ ${retry_incus} -lt 10 ]]
do
incus restore "$incus_name" "$ynh_version-$snapshot" && break || retry_incus=$(($retry_incus+1))
incus snapshot restore "$incus_name" "$ynh_version-$snapshot" && break || retry_incus=$(($retry_incus+1))
info "Failed to restore snapshot? Retrying in 10 sec ..."
if [[ ${retry_incus} -ge 3 ]]
then