delay the wazuh remove credentials (#319)

Former-commit-id: cc0e0d13aa
This commit is contained in:
AlfonsoRBJ
2020-03-26 15:58:33 +01:00
committed by GitHub
parent 99d54f1776
commit d8a90dc6b7
2 changed files with 4 additions and 4 deletions
@@ -0,0 +1,14 @@
#!/bin/bash
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
##############################################################################
# Decrypt credentials.
# Remove the credentials file for security reasons.
##############################################################################
if [[ "x${SECURITY_CREDENTIALS_FILE}" == "x" ]]; then
echo "CREDENTIALS - Security credentials file not used. Nothing to do."
else
echo "CREDENTIALS - Remove credentiasl file."
shred -zvu ${SECURITY_CREDENTIALS_FILE}
fi