Skip to content

Commit

Permalink
Change the name of the new function to a correct nomemclature
Browse files Browse the repository at this point in the history
  • Loading branch information
Enaraque committed Jun 18, 2024
1 parent ff49149 commit 00dd4cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion unattended_installer/cert_tool/certFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function cert_setpermisions() {
eval "chmod -R 744 ${1} ${debug}"
}

function set_certs_directory() {
function cert_setDirectory() {

if [ -d "${base_path}/wazuh-certificates" ]; then
eval "cp -f ${cert_tmp_path}/* ${base_path}/wazuh-certificates ${debug}"
Expand Down
12 changes: 6 additions & 6 deletions unattended_installer/cert_tool/certMain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function main() {
cert_generateAdmincertificate
common_logger "Admin certificates created."
cert_cleanFiles
set_certs_directory
cert_setDirectory
fi

if [[ -n "${all}" ]]; then
Expand All @@ -193,13 +193,13 @@ function main() {
common_logger "Wazuh dashboard certificates created."
fi
cert_cleanFiles
set_certs_directory
cert_setDirectory
fi

if [[ -n "${ca}" ]]; then
cert_generateRootCAcertificate
common_logger "Authority certificates created."
set_certs_directory
cert_setDirectory
fi

if [[ -n "${cindexer}" ]]; then
Expand All @@ -208,7 +208,7 @@ function main() {
cert_generateIndexercertificates
common_logger "Wazuh indexer certificates created."
cert_cleanFiles
set_certs_directory
cert_setDirectory
else
common_logger -e "Indexer node not present in config.yml."
exit 1
Expand All @@ -221,7 +221,7 @@ function main() {
cert_generateFilebeatcertificates
common_logger "Wazuh Filebeat certificates created."
cert_cleanFiles
set_certs_directory
cert_setDirectory
else
common_logger -e "Server node not present in config.yml."
exit 1
Expand All @@ -234,7 +234,7 @@ function main() {
cert_generateDashboardcertificates
common_logger "Wazuh dashboard certificates created."
cert_cleanFiles
set_certs_directory
cert_setDirectory
else
common_logger -e "Dashboard node not present in config.yml."
exit 1
Expand Down

0 comments on commit 00dd4cc

Please sign in to comment.