Skip to content

Commit

Permalink
comments changes required for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
t-monaghan committed Nov 29, 2023
1 parent 7b1b0eb commit 3f5c189
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -e
# Script to install `nix`, `devbox`, `direnv`, and `nix-direnv` and get them all working together

NETSKOPE_DATA_DIR="/Library/Application Support/Netskope/STAgent/data"

# This variable is set by docker in mock_functions.sh to provide the linux path rather than the typical MacOS path
NIX_FINAL_SSL_FILE="${NIX_FINAL_SSL_FILE:-NETSKOPE_DATA_DIR/nscacert_combined.pem}"

# Copy create Netskope combined cert and save to known location recommended by their docs:
Expand Down Expand Up @@ -33,6 +35,9 @@ generate_combined_netskope_cert() {
install_nix() {
echo "=== installing nix (requires sudo)..."
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix |
# $INSTALLER_EXTRA_ARGS below is required by docker as default install expects systemd for a linux install
# That alone is able to be set by an env var in the docker environment,
# however we also have to provide 'linux' as an argument for the installing script
sh -s -- install $INSTALLER_EXTRA_ARGS --no-confirm \
--extra-conf "trusted-users = root @admin" \
--ssl-cert-file "$NIX_FINAL_SSL_FILE"
Expand Down

0 comments on commit 3f5c189

Please sign in to comment.