From bb85a9aef252db69bfeb8c7327e18506bf6cae08 Mon Sep 17 00:00:00 2001
From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com>
Date: Tue, 15 Dec 2020 13:23:34 +0100
Subject: [PATCH 1/2] Update script name
---
wazuh-odfe/config/etc/cont-init.d/2-manager | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wazuh-odfe/config/etc/cont-init.d/2-manager b/wazuh-odfe/config/etc/cont-init.d/2-manager
index 4419011a..8ff310eb 100644
--- a/wazuh-odfe/config/etc/cont-init.d/2-manager
+++ b/wazuh-odfe/config/etc/cont-init.d/2-manager
@@ -110,4 +110,4 @@ function_wazuh_migration
function_create_custom_user
# Start Wazuh
-/var/ossec/bin/ossec-control start
+/var/ossec/bin/wazuh-control start
From 0da4a86f074f57c691a9c57869bcd2af119544b6 Mon Sep 17 00:00:00 2001
From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com>
Date: Tue, 15 Dec 2020 15:21:02 +0100
Subject: [PATCH 2/2] Update references to authd
---
production_cluster/wazuh_cluster/wazuh_manager.conf | 10 +++++-----
production_cluster/wazuh_cluster/wazuh_worker.conf | 10 +++++-----
wazuh-odfe/config/etc/cont-init.d/0-wazuh-init | 4 ++--
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/production_cluster/wazuh_cluster/wazuh_manager.conf b/production_cluster/wazuh_cluster/wazuh_manager.conf
index 740321bb..d6e4f5ec 100644
--- a/production_cluster/wazuh_cluster/wazuh_manager.conf
+++ b/production_cluster/wazuh_cluster/wazuh_manager.conf
@@ -94,7 +94,7 @@
6h
yes
-
+
no
trusty
@@ -104,7 +104,7 @@
1h
-
+
no
stretch
@@ -112,7 +112,7 @@
1h
-
+
no
5
@@ -307,7 +307,7 @@
etc/rules
-
+
no
1515
@@ -346,4 +346,4 @@
syslog
/var/ossec/logs/active-responses.log
-
+
diff --git a/production_cluster/wazuh_cluster/wazuh_worker.conf b/production_cluster/wazuh_cluster/wazuh_worker.conf
index 59462183..e202e849 100644
--- a/production_cluster/wazuh_cluster/wazuh_worker.conf
+++ b/production_cluster/wazuh_cluster/wazuh_worker.conf
@@ -94,7 +94,7 @@
6h
yes
-
+
no
trusty
@@ -104,7 +104,7 @@
1h
-
+
no
stretch
@@ -112,7 +112,7 @@
1h
-
+
no
5
@@ -307,7 +307,7 @@
etc/rules
-
+
no
1515
@@ -346,4 +346,4 @@
syslog
/var/ossec/logs/active-responses.log
-
+
diff --git a/wazuh-odfe/config/etc/cont-init.d/0-wazuh-init b/wazuh-odfe/config/etc/cont-init.d/0-wazuh-init
index 68538c10..fedd795a 100644
--- a/wazuh-odfe/config/etc/cont-init.d/0-wazuh-init
+++ b/wazuh-odfe/config/etc/cont-init.d/0-wazuh-init
@@ -94,7 +94,7 @@ remove_data_files() {
##############################################################################
create_ossec_key_cert() {
- print "Creating ossec-authd key and cert"
+ print "Creating wazuh-authd key and cert"
exec_cmd "openssl genrsa -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.key 4096"
exec_cmd "openssl req -new -x509 -key ${WAZUH_INSTALL_PATH}/etc/sslmanager.key -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.cert -days 3650 -subj /CN=${HOSTNAME}/"
}
@@ -161,7 +161,7 @@ main() {
# Remove some files in permanent_data (i.e. .template.db)
remove_data_files
- # Generate ossec-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
+ # Generate wazuh-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
if [ $AUTO_ENROLLMENT_ENABLED == true ]
then
if [ ! -e ${WAZUH_INSTALL_PATH}/etc/sslmanager.key ]