From 464aeebddc0cc5052eaca7e1fbfa0142d402c61b Mon Sep 17 00:00:00 2001 From: Ryan Cragun Date: Fri, 15 Sep 2023 18:33:47 -0600 Subject: [PATCH] test: fix netcat install and listen for socket audit device (#23134) Fix an issue where netcat would not be installed correctly with certain package managers. We also fix an issue where SSH cannot exit because nc is waitaing for SIGHUP, resulting in scenarios running forever. Signed-off-by: Ryan Cragun --- .../vault_cluster/scripts/enable_audit_logging.sh | 10 +++------- .../vault_cluster/templates/install-packages.sh | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh index 8e087fac7c..2ec35a4eab 100644 --- a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh +++ b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh @@ -1,14 +1,10 @@ -#!/bin/env sh +#!/bin/env bash # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 - - set -eux -LOG_DIR="$(dirname "$LOG_FILE_PATH")" - -# Run nc to listen to port 9090 -nc -l 9090 & +# Run nc to listen to port 9090 for the socket audit log +nohup nc -l 9090 &>/dev/null