mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
14 lines
533 B
Bash
14 lines
533 B
Bash
#!/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 |