bwc-installer-arm32/uninstall.sh

48 lines
1.3 KiB
Bash
Raw Normal View History

2023-09-06 05:27:32 +00:00
#!/bin/bash
set -e
if [ $(id -u) -ne 0 ]; then
echo "Please run as root. - sudo su"
exit
fi
echo "[INIT] Start uninstall device-control"
systemctl disable device-control
systemctl stop device-control
rm /etc/systemd/system/device-control.service
2023-09-06 07:39:35 +00:00
rm /usr/bin/device-control
2023-09-06 05:27:32 +00:00
rm -rf /etc/sdt/device-control
echo "[INIT] Finish uninstall device-control"
echo "[INIT] Start uninstall device-health"
systemctl disable device-health
systemctl stop device-health
rm /etc/systemd/system/device-health.service
2023-09-06 07:39:35 +00:00
rm /usr/bin/device-health
2023-09-06 05:27:32 +00:00
rm -rf /etc/sdt/device-health
echo "[INIT] Finish uninstall device-health"
echo "[INIT] Start uninstall device-heartbeat"
systemctl disable device-heartbeat
systemctl stop device-heartbeat
rm /etc/systemd/system/device-heartbeat.service
2023-09-06 07:39:35 +00:00
rm /usr/bin/device-heartbeat
2023-09-06 05:27:32 +00:00
echo "[INIT] Finish uninstall device-heartbeat"
echo "[INIT] Start uninstall process-checker"
systemctl disable process-checker
systemctl stop process-checker
rm /etc/systemd/system/process-checker.service
2023-09-06 07:39:35 +00:00
rm /usr/bin/process-checker
2023-09-06 05:27:32 +00:00
echo "[INIT] Finish uninstall process-checker"
2024-01-03 04:48:13 +00:00
echo "[INIT] Start uninstall bwc-management"
systemctl disable bwc-management
systemctl stop bwc-management
rm /etc/systemd/system/bwc-management.service
rm /usr/bin/bwc-management
echo "[INIT] Finish uninstall bwc-management"
echo "[INIT] Delete Cert, Config, Log Data"
rm -rf /etc/sdt