"MaJ ctl_vm.sh"

This commit is contained in:
Doug Le Tough 2017-07-23 10:15:14 +02:00
parent 8c10230a2c
commit 0fea561700

View File

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