summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Ortega2023-11-19 20:43:10 -0600
committerMartin Ortega2023-11-19 20:43:10 -0600
commita0e92dfa38e268b57a569547155ab99676439e44 (patch)
treeface8c59cce92a9c1d0fd857affffb848c3c49df
parent3eb9fe199459188bcd6edddcc7b68a2a1a3daefa (diff)
downloadaur-a0e92dfa38e268b57a569547155ab99676439e44.tar.gz
wazuh-manager.service finally starting
-rw-r--r--wazuh-manager.install2
-rw-r--r--wazuh-manager.install~11
2 files changed, 13 insertions, 0 deletions
diff --git a/wazuh-manager.install b/wazuh-manager.install
index 5fb59d0934b7..4385f64bc2d0 100644
--- a/wazuh-manager.install
+++ b/wazuh-manager.install
@@ -4,6 +4,8 @@ post_install()
groupadd -f wazuh
usuario="wazuh" && id "$usuario" &>/dev/null || useradd -g wazuh -d /var/ossec -s /usr/bin/nologin wazuh
chown -R wazuh:wazuh /var/ossec
+ echo "generating cert files for wazuh-authd to run properly"
+ ./var/ossec/bin/wazuh-authd -C 265 -B 2048 -K /var/ossec/etc/sslmanager.key -X /var/ossec/etc/sslmanager.cert -S "/C=US/ST=California/CN=wazuh/"
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
}
diff --git a/wazuh-manager.install~ b/wazuh-manager.install~
new file mode 100644
index 000000000000..656e56cfe891
--- /dev/null
+++ b/wazuh-manager.install~
@@ -0,0 +1,11 @@
+post_install()
+{
+ echo "creating wazuh user and group"
+ groupadd -f wazuh
+ usuario="wazuh" && id "$usuario" &>/dev/null || useradd -g wazuh -d /var/ossec -s /usr/bin/nologin wazuh
+ chown -R wazuh:wazuh /var/ossec
+ echo "generating cert files for wazuh-authd to run properly"
+ ./wazuh-authd -C 265 -B 2048 -K /var/ossec/etc/sslmanager.key -X /var/ossec/etc/sslmanager.cert -S "/C=US/ST=California/CN=wazuh/"
+ echo "Done!"
+ echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
+}