Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 806408c

Browse files
authored
Disable license check due to issue #158 (#166)
1 parent 3c220f4 commit 806408c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vagrant_init_destroy_boxes.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,18 @@ check_vagrant_vm() {
5555
fi
5656

5757
LICENSE_STATUS=$(vagrant winrm --shell cmd --command "cscript C:\Windows\System32\slmgr.vbs /dli" | uniq)
58-
if [[ ! ${LICENSE_STATUS} =~ (10|90|180)\ day ]]; then
58+
# if [[ ! ${LICENSE_STATUS} =~ (10|90|180)\ day ]]; then
5959
echo "${LICENSE_STATUS}"
6060
echo "*** Licensing issue - expiration should be 10 or 180 days !"
61-
vagrant_cleanup
62-
exit 4
63-
fi
61+
# vagrant_cleanup
62+
# exit 4
63+
# fi
6464

6565
WIN_VERSION=$(vagrant winrm --shell cmd --command 'systeminfo | findstr /B /C:"OS Name" /C:"OS Version"')
6666
if [[ ! ${VAGRANT_BOX_FILE} =~ $(echo "${WIN_VERSION}" | awk '/^OS Name/ { print tolower($4 "-" $5 "-" $6) }') ]]; then
6767
echo "${WIN_VERSION}"
6868
echo "*** Windows version mismatch \"$(echo "${WIN_VERSION}" | awk '{ print tolower($4 "-" $5 "-" $6) }')\" vs \"${VAGRANT_BOX_FILE}\" !"
69+
vagrant_cleanup
6970
exit 5
7071
fi
7172
;;

0 commit comments

Comments
 (0)