From 31e24f5bd2b7d49a12d5cbb164ce4c440feefc09 Mon Sep 17 00:00:00 2001 From: SW386 Date: Fri, 12 Jun 2026 12:29:32 -0400 Subject: [PATCH] fix: vanta agent scripts --- install-linux.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install-linux.sh b/install-linux.sh index c624ada..41e65f4 100755 --- a/install-linux.sh +++ b/install-linux.sh @@ -32,7 +32,7 @@ fi if [ $(echo "$UID") = "0" ]; then SUDO='' else - SUDO='sudo -E' + SUDO='sudo' fi function get_platform() { @@ -156,7 +156,12 @@ fi # Install Vanta Device Monitor ## printf "\033[34m\n* Installing Vanta Device Monitor. You might be asked for your password...\n\033[0m" -$SUDO $INSTALL_CMD $PKG_PATH +$SUDO env \ + VANTA_KEY="$VANTA_KEY" \ + VANTA_OWNER_EMAIL="$VANTA_OWNER_EMAIL" \ + VANTA_REGION="$VANTA_REGION" \ + ${VANTA_NOSTART:+VANTA_NOSTART="$VANTA_NOSTART"} \ + $INSTALL_CMD $PKG_PATH ## @@ -193,4 +198,4 @@ Vanta Device Monitor has been installed successfully. It will run in the background and submit data to Vanta. You can check the status of Vanta Device Monitor using the \"/var/vanta/vanta-cli status\" command. -\033[0m" +\033[0m" \ No newline at end of file