From 806408c7fd10f2a87db766de6b5d743070ac907f Mon Sep 17 00:00:00 2001 From: Petr Ruzicka Date: Fri, 21 Aug 2020 10:14:07 +0200 Subject: [PATCH] Disable license check due to issue #158 (#166) --- vagrant_init_destroy_boxes.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ;;