WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4a0d811

Browse files
committed
updated macos scripts to require region and owner_email
1 parent e97e1bd commit 4a0d811

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

install-macos.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -e
33

44
# Environment variables:
55
# VANTA_KEY (the Vanta per-domain secret key)
6-
# VANTA_OWNER_EMAIL (the email of the person who owns this computer. Ignored if VANTA_KEY is missing.)
7-
# VANTA_REGION (the region the Agent talks to, such as "us" or "eu".)
6+
# VANTA_OWNER_EMAIL (the email of the person who owns this computer)
7+
# VANTA_REGION (the region the Agent talks to, such as "us", "eu" or "aus".)
88

99
PKG_URL="https://agent-downloads.vanta.com/targets/versions/2.11.0/vanta-universal.pkg"
1010
# Checksum needs to be updated when PKG_URL is updated.
@@ -30,6 +30,21 @@ You must specify the VANTA_KEY environment variable in order to install the agen
3030
exit 1
3131
fi
3232

33+
if [ -z "$VANTA_OWNER_EMAIL" ]; then
34+
printf "\033[31m
35+
You must specify the VANTA_OWNER_EMAIL environment variable in order to install the agent.
36+
\n\033[0m\n"
37+
exit 1
38+
fi
39+
40+
if [ -z "$VANTA_REGION" ]; then
41+
printf "\033[31m
42+
You must specify the VANTA_REGION environment variable in order to install the agent.
43+
\n\033[0m\n"
44+
exit 1
45+
fi
46+
47+
3348
function onerror() {
3449
printf "\033[31m$ERROR_MESSAGE
3550
Something went wrong while installing the Vanta agent.

0 commit comments

Comments
 (0)