From 634386ea50461c2e465808d4c9a08727b32c98b4 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Sep 2025 11:00:28 +0200 Subject: [PATCH] destroy vm revert openwrt --- vm/openwrt-vm.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vm/openwrt-vm.sh b/vm/openwrt-vm.sh index c8ccf1bf8..66c5ad077 100644 --- a/vm/openwrt-vm.sh +++ b/vm/openwrt-vm.sh @@ -77,7 +77,7 @@ function error_handler() { post_update_to_api "failed" "$command" local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}" echo -e "\n$error_message\n" - cleanup_vmid + #cleanup_vmid } function get_valid_nextid() { @@ -97,12 +97,12 @@ function get_valid_nextid() { echo "$try_id" } -function cleanup_vmid() { - if qm status $VMID &>/dev/null; then - qm stop $VMID &>/dev/null - qm destroy $VMID &>/dev/null - fi -} +# function cleanup_vmid() { +# if qm status $VMID &>/dev/null; then +# qm stop $VMID &>/dev/null +# #qm destroy $VMID &>/dev/null +# fi +# } function cleanup() { popd >/dev/null