-
Notifications
You must be signed in to change notification settings - Fork 0
/
RevertSetup-arm64.sh
46 lines (39 loc) · 1.52 KB
/
RevertSetup-arm64.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
#!/bin/bash
NC='\033[0m' # No Color
CYAN='\033[0;96m'
GREEN='\033[1;92m'
echo -en "${CYAN}Removing xorg config: $NC"
rm -rf $HOME/.config &> /dev/null
echo -e "${GREEN}Complete!$NC"
echo -en "${CYAN}Removing docker images: $NC"
sudo docker rmi zigbee2mqtt/zigbee2mqtt-edge-aarch64:latest \
openhab/openhab:3.4.0-snapshot-alpine \
deconzcommunity/deconz \
portainer/portainer-ce:linux-arm64 \
sepia/home \
eclipse-mosquitto sepia/stt-server:vosk_aarch64 &> /dev/null
echo -e "${GREEN}Complete!$NC"
echo -en "${CYAN}Removing container shares: $NC"
sudo rm -rf /opt/portainer /opt/deconz /opt/openhab /opt/sepia /opt/mosquitto /opt/zigbee2mqtt &> /dev/null
echo -e "${GREEN}Complete!$NC"
echo -en "${CYAN}Removing container services: $NC"
sudo rm /lib/systemd/system/openhab.service \
/lib/systemd/system/deconz.service \
/lib/systemd/system/portainer.service \
/lib/systemd/system/sepia.service \
/lib/systemd/system/sepia-stt.service \
/lib/systemd/system/mosquitto.service \
/lib/systemd/system/zigbee2mqtt.service \
/etc/udev/rules.d/99-usb-serial.rules
sudo systemctl daemon-reload &> /dev/null
echo -e "${GREEN}Complete!$NC"
echo -en "${CYAN}Removing installed base components: $NC"
sudo apt -y remove vim chromium-browser docker.io &> /dev/null
echo -e "${GREEN}Complete!$NC"
echo -en "${CYAN}Removing service users: $NC"
sudo userdel portainer &> /dev/null
sudo userdel deconz &> /dev/null
sudo userdel openhab &> /dev/null
sudo userdel sepia &> /dev/null
sudo userdel mqtt &> /dev/null
echo -e "${GREEN}Complete!$NC"