bwc-installer-arm32/uninstall.sh

41 lines
1.1 KiB
Bash
Raw Permalink 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"
echo "[INIT] Delete Cert Data"
rm -rf /etc/sdt/cert