diff --git a/vagrant_init_destroy_boxes.sh b/vagrant_init_destroy_boxes.sh index 2e3723bc..38896e43 100755 --- a/vagrant_init_destroy_boxes.sh +++ b/vagrant_init_destroy_boxes.sh @@ -55,17 +55,18 @@ check_vagrant_vm() { fi LICENSE_STATUS=$(vagrant winrm --shell cmd --command "cscript C:\Windows\System32\slmgr.vbs /dli" | uniq) - if [[ ! ${LICENSE_STATUS} =~ (10|90|180)\ day ]]; then + # if [[ ! ${LICENSE_STATUS} =~ (10|90|180)\ day ]]; then echo "${LICENSE_STATUS}" echo "*** Licensing issue - expiration should be 10 or 180 days !" - vagrant_cleanup - exit 4 - fi + # vagrant_cleanup + # exit 4 + # fi WIN_VERSION=$(vagrant winrm --shell cmd --command 'systeminfo | findstr /B /C:"OS Name" /C:"OS Version"') if [[ ! ${VAGRANT_BOX_FILE} =~ $(echo "${WIN_VERSION}" | awk '/^OS Name/ { print tolower($4 "-" $5 "-" $6) }') ]]; then echo "${WIN_VERSION}" echo "*** Windows version mismatch \"$(echo "${WIN_VERSION}" | awk '{ print tolower($4 "-" $5 "-" $6) }')\" vs \"${VAGRANT_BOX_FILE}\" !" + vagrant_cleanup exit 5 fi ;;