From aa8b65ce0c88bb807cf52e730071874851852714 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Wed, 6 Mar 2024 13:43:29 -0600 Subject: [PATCH] Add shebang! to executable *.sh files. --- backend/worker/pe_scripts/runPeAlerts.sh | 2 +- backend/worker/worker-entry.sh | 1 + build.sh | 2 ++ rebuild.sh | 2 ++ setup-matomo.sh | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/worker/pe_scripts/runPeAlerts.sh b/backend/worker/pe_scripts/runPeAlerts.sh index 03c1ba36..4ae30123 100755 --- a/backend/worker/pe_scripts/runPeAlerts.sh +++ b/backend/worker/pe_scripts/runPeAlerts.sh @@ -1,5 +1,5 @@ #!/bin/bash -cd /app/pe-reports +cd /app/pe-reports || return pe-source cybersixgill --cybersix-methods=alerts --soc_med_included \ No newline at end of file diff --git a/backend/worker/worker-entry.sh b/backend/worker/worker-entry.sh index 2a510ab8..5c411714 100755 --- a/backend/worker/worker-entry.sh +++ b/backend/worker/worker-entry.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Sets up an explicit proxy using mitmproxy. set -e diff --git a/build.sh b/build.sh index c8e87c31..505ced8e 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ +#!/bin/bash + docker-compose down --volumes --rmi all cd backend && npm run build-worker && cd .. && npm start cd backend && npm run syncdb && npm run syncdb -- -d populate \ No newline at end of file diff --git a/rebuild.sh b/rebuild.sh index d41a5fae..8728ef06 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -1 +1,3 @@ +#!/bin/bash + docker-compose up -d --build \ No newline at end of file diff --git a/setup-matomo.sh b/setup-matomo.sh index ce8d8122..52a1bac8 100755 --- a/setup-matomo.sh +++ b/setup-matomo.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Fixes the trusted_hosts issue to allow Matomo to run on a custom port locally, as # a workaround for https://github.com/matomo-org/matomo/issues/9549. # Run this after initially setting up Matomo through the UI.