From b0b124243b4ddf2f279a92735749b6a7414e28d0 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Fri, 1 Nov 2019 08:43:21 -0700 Subject: [PATCH] Updating yq installation check --- Vagrant/bootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrant/bootstrap.sh b/Vagrant/bootstrap.sh index aa355ca..566cb8e 100644 --- a/Vagrant/bootstrap.sh +++ b/Vagrant/bootstrap.sh @@ -438,7 +438,8 @@ test_suricata_prerequisites() { if ! [ -f /root/go/bin/yq ]; then # If it doesn't exist, try to re-install the package echo "[-] yq was not found. Attempting to reinstall." - /usr/local/go/bin/go get -u github.com/mikefarah/yq + /usr/local/go/bin/go get gopkg.in/mikefarah/yq.v2 + cp /root/go/bin/yq.v2 /root/go/bin/yq && chmod +x /root/go/bin/yq if ! [ -f /root/go/bin/yq ]; then # If the reinstall fails, give up echo "[X] Unable to install yq even after a retry. Exiting."