Use /usr/bin/env bash instead of /bin/bash for scripts

This commit is contained in:
Chris Long
2020-11-05 22:32:03 -08:00
parent e31479485c
commit 3fb36effed
10 changed files with 11 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is used to populate the Azure Ansible inventory.yml with # This script is used to populate the Azure Ansible inventory.yml with
# the results of "terraform output" # the results of "terraform output"

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Override existing DNS Settings using netplan, but don't do it for Terraform builds # Override existing DNS Settings using netplan, but don't do it for Terraform builds
if ! curl -s 169.254.169.254 --connect-timeout 2 >/dev/null; then if ! curl -s 169.254.169.254 --connect-timeout 2 >/dev/null; then

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Override existing DNS Settings using netplan, but don't do it for Terraform builds # Override existing DNS Settings using netplan, but don't do it for Terraform builds
if ! curl -s 169.254.169.254 --connect-timeout 2 >/dev/null; then if ! curl -s 169.254.169.254 --connect-timeout 2 >/dev/null; then

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is meant to verify that DetectionLab was built successfully. # This script is meant to verify that DetectionLab was built successfully.
# Only MacOS and Linux are supported. Use post_build_checks.ps1 for Windows. # Only MacOS and Linux are supported. Use post_build_checks.ps1 for Windows.

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is meant to verify that your system is configured to # This script is meant to verify that your system is configured to
# build DetectionLab successfully. # build DetectionLab successfully.

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Thanks to @MHaggis for this addition! # Thanks to @MHaggis for this addition!
# It is recommended to only uncomment the attack-only dataset comment block. # It is recommended to only uncomment the attack-only dataset comment block.

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
#Thanks to @MHaggis for this addition! #Thanks to @MHaggis for this addition!
#More information on BOTSv3 can be found at https://github.com/splunk/botsv3 #More information on BOTSv3 can be found at https://github.com/splunk/botsv3

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is run on the Packet.net baremetal server for CI tests. # This script is run on the Packet.net baremetal server for CI tests.
# While building, the server will start a webserver on Port 80 that contains # While building, the server will start a webserver on Port 80 that contains
@@ -112,7 +112,7 @@ fi
# Recreate a barebones version of the build script so we have some sense of return codes # Recreate a barebones version of the build script so we have some sense of return codes
cat << 'EOF' > /opt/DetectionLab/build.sh cat << 'EOF' > /opt/DetectionLab/build.sh
#! /bin/bash #! /usr/bin/env bash
# Brings up a single host using Vagrant # Brings up a single host using Vagrant
vagrant_up_host() { vagrant_up_host() {

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is used to manually prepare an Ubuntu 16.04 server for DetectionLab building # This script is used to manually prepare an Ubuntu 16.04 server for DetectionLab building
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# This script is used to manually prepare an Ubuntu 16.04 server for DetectionLab building # This script is used to manually prepare an Ubuntu 16.04 server for DetectionLab building