Browse Source

"MaJ ctl_vm.sh"

master
Doug Le Tough 5 years ago
parent
commit
0fea561700
  1. 4
      bin/ctl_vm.sh

4
bin/ctl_vm.sh

@ -122,12 +122,12 @@ function check_vm @@ -122,12 +122,12 @@ function check_vm
if [ ! ${VM_STATUS} -eq 1 ]; then
VM_STATUS=$(ssh ${NUC} -p ${NUC_SSH_PORT} "/usr/bin/sudo virsh domstate ${VM} 2>/dev/null | head -n1")
VM_STATUS="${VM}: VM is ${VM_STATUS}"
fct_message " - ${VM_STATUS}" -color rose
fct_message " - ${VM_STATUS}" -color rose
MESSAGE="${MESSAGE}|||${VM_STATUS}"
continue
fi
VM_STATUS="${VM}: VM is running"
fct_message " - ${VM_STATUS}" -color vert
fct_message " - ${VM_STATUS}" -color vert
done
}

Loading…
Cancel
Save