fix(proxmox): commented 'non-errors' on script
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -65,11 +65,11 @@ restart_vm() {
|
||||
}
|
||||
|
||||
# Main execution
|
||||
log_message "Starting monitoring of VM $VM_ID on port $PORT..."
|
||||
# log_message "Starting monitoring of VM $VM_ID on port $PORT..."
|
||||
|
||||
# Check if port 22 is open
|
||||
if ! check_port; then
|
||||
restart_vm
|
||||
else
|
||||
log_message "Port $PORT is reachable. VM is running normally."
|
||||
# log_message "Port $PORT is reachable. VM is running normally."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user