mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-18 09:19:00 +00:00
destroy vm revert openwrt
This commit is contained in:
parent
020c8a76c1
commit
634386ea50
@ -77,7 +77,7 @@ function error_handler() {
|
|||||||
post_update_to_api "failed" "$command"
|
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}"
|
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"
|
echo -e "\n$error_message\n"
|
||||||
cleanup_vmid
|
#cleanup_vmid
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_valid_nextid() {
|
function get_valid_nextid() {
|
||||||
@ -97,12 +97,12 @@ function get_valid_nextid() {
|
|||||||
echo "$try_id"
|
echo "$try_id"
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanup_vmid() {
|
# function cleanup_vmid() {
|
||||||
if qm status $VMID &>/dev/null; then
|
# if qm status $VMID &>/dev/null; then
|
||||||
qm stop $VMID &>/dev/null
|
# qm stop $VMID &>/dev/null
|
||||||
qm destroy $VMID &>/dev/null
|
# #qm destroy $VMID &>/dev/null
|
||||||
fi
|
# fi
|
||||||
}
|
# }
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user