Skip to content

Commit

Permalink
removed old, added Charles script for offline
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjmux committed Nov 19, 2022
1 parent 6f0e83f commit 9f85a64
Show file tree
Hide file tree
Showing 24 changed files with 42 additions and 2,118 deletions.
42 changes: 42 additions & 0 deletions Linux/deployment/offline-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
#Written by Charles Wu
echo "Make sure this is run in the same directory as the CCDC Repo"
echo "==========Installing Basic Dependencies=========="
mkdir offline-gen-dependencies
tar xzvf offline-gen-dependencies.tgz -C offline-gen-dependencies
dpkg -i offline-gen-dependencies/*.deb
dpkg -i offline-gen-dependencies/*.deb
echo "========== Deploying Ansible =========="
tar xzvf ansible-dl.tgz
dpkg -i ansible-dl/*.deb

echo "========== Deploying Wazuh =========="
#locate all 4 files
MANAGER_PATH=$(find / -name wazuh-manager_4.3.9-1_debian_amd64.deb)
DASHBOARD_PATH=$(find / -name wazuh-dashboard_4.3.9-1_amd64.deb)
INDEXER_PATH=$(find / -name wazuh-indexer_4.3.9-1_amd64.deb)
MANAGER2_PATH=$(find / -name wazuh-manager_4.3.9-1_amd64.deb)
FILEBEAT_PATH=$(find / -name filebeat-oss-7.10.2-amd64.deb)
#install 1 by 1
echo MANAGER PATH + $MANAGER_PATH
dpkg -i $MANAGER_PATH
dpkg -i $DASHBOARD_PATH
dpkg -i $INDEXER_PATH
dpkg -i $MANAGER2_PATH
dpkg -i $FILEBEAT_PATH


dpkg -i $MANAGER_PATH
dpkg -i $DASHBOARD_PATH
dpkg -i $INDEXER_PATH
dpkg -i $MANAGER2_PATH
dpkg -i $FILEBEAT_PATH

echo "========== Attempting to start Wazuh Services =========="
systemctl enable --now wazuh-manager.service
systemctl enable --now wazuh-indexer-performance-analyzer.service

systemctl enable --now wazuh-indexer.service
systemctl enable --now wazuh-dashboard.service


58 changes: 0 additions & 58 deletions Linux/deployment/old_ansible-wazuh-agent/README.md

This file was deleted.

Loading

0 comments on commit 9f85a64

Please sign in to comment.