From 03de0719dc12ee3bff077fe2d43d33d09d0aa475 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sun, 10 Mar 2024 21:45:24 +0100 Subject: [PATCH] fix restore --- utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.sh b/utils.sh index 9f226a6..bbdf54e 100755 --- a/utils.sh +++ b/utils.sh @@ -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