From 00bbc0bd65e07c5f64b233c609b7cefc8e712c29 Mon Sep 17 00:00:00 2001 From: Marc Boudreau Date: Mon, 18 Sep 2023 12:14:26 -0400 Subject: [PATCH] adjust nc command to ensure ssh session is not blocked (#23139) --- enos/modules/vault_cluster/scripts/enable_audit_logging.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh index 2ec35a4eab..041fa69b59 100644 --- a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh +++ b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh @@ -4,7 +4,10 @@ set -eux # Run nc to listen to port 9090 for the socket audit log -nohup nc -l 9090 &>/dev/null /dev/null & + +# Sleep for a second to make sure nc is up and running +sleep 1 $VAULT_BIN_PATH audit enable file file_path="$LOG_FILE_PATH" $VAULT_BIN_PATH audit enable syslog tag="vault" facility="AUTH"