Skip to content

Commit

Permalink
fix: pass server url to agent install.sh (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune authored Mar 28, 2023
1 parent 652b6c4 commit 6f666c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup_lacework_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ install_lacework_agent() {

chmod +x "$LACEWORK_TEMP_PATH/install.sh"

sudo "$LACEWORK_TEMP_PATH/install.sh" "$TOKEN"
# Pass flag '-U' when a server URL is provided
local _flags
if [ "$SERVER_URL" != "" ]; then
_flags="-U $SERVER_URL"
fi

sudo "$LACEWORK_TEMP_PATH/install.sh" "$TOKEN" $_flags

rm "$LACEWORK_TEMP_PATH/install.sh"
fi
Expand Down

0 comments on commit 6f666c5

Please sign in to comment.