adjust nc command to ensure ssh session is not blocked (#23139)

This commit is contained in:
Marc Boudreau 2023-09-18 12:14:26 -04:00 committed by GitHub
parent 6e5bd7abd9
commit 00bbc0bd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 &
nc -l 9090 &>/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"