-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathuninstall_manager.sh
executable file
·47 lines (33 loc) · 1.14 KB
/
uninstall_manager.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
#
# Copyright (c) 2024, Bozhidar Genev - All Rights Reserved.Impulse XDR
# Impulse is licensed under the Impulse User License Agreement at the root of this project.
#
./impulse-control.sh stop
# stop and remove containers and images
docker compose --file ./docker-compose-manager.yml down
docker compose --file ./docker-compose-nids.yml down
# purge osquery
apt purge -y osquery
# stop and remove systemd services
systemctl stop impulse-manager impulse-auxiliary impulse-nids osquery
systemctl disable impulse-manager impulse-auxiliary impulse-bgtasks impulse-nids osquery
rm /etc/systemd/system/impulse-manager.service
rm /etc/systemd/system/impulse-auxiliary.service
rm /etc/systemd/system/impulse-nids.service
docker rmi $(docker images -a -q)
# restart systemd
systemctl daemon-reload
systemctl reset-failed
# remove project folders and files
rm -rf /var/impulse
rm -rf /var/log/impulse
rm -rf /var/log/impulse
rm -rf /etc/cron.d/impulse
rm -rf /var/osquery
rm -rf /var/log/osquery
# restart services affected by impulse
systemctl restart cron
systemctl restart docker
#deluser impulse_siem
nft flush table inet impulse_table