@@ -7,13 +7,6 @@ WEBIDE_ROOT="/usr/share/adafruit"
7
7
WEBIDE_HOME=" /home/webide"
8
8
NODE_PATH=" "
9
9
10
- echo " **** Removing restartd WebIDE configuration ****"
11
- sed -i ' /adafruit-webide.sh/ d' /etc/restartd.conf
12
- # kill all restartd processes, and restart one
13
- pkill -f restartd || true
14
- sleep 5s
15
- restartd
16
-
17
10
echo " **** Removing webide user from sudoers ****"
18
11
if [ -f " /etc/sudoers.tmp" ]; then
19
12
rm /etc/sudoers.tmp
@@ -30,21 +23,22 @@ echo "**** Stopping the Adafruit WebIDE ****"
30
23
service adafruit-webide.sh stop
31
24
sleep 5s
32
25
33
- echo " **** Removing update-rc.d service ****"
34
- update-rc.d -f adafruit-webide.sh remove
35
- rm /etc/init.d/adafruit-webide.sh
26
+ echo " **** Removing systemd service ****"
27
+ systemctl stop adafruit-webide
28
+ systemctl disable adafruit-webide
29
+ rm /etc/systemd/system/adafruit-webide.service
30
+ systemctl daemon-reload
31
+ systemctl reset-failed
32
+
36
33
echo " **** Removing the WebIDE Folder ****"
37
34
rm -rf " $WEBIDE_ROOT "
38
35
echo " **** Removing webide user ****"
39
36
userdel -r webide
40
37
41
- echo " **** Removing redis server setting ****"
42
- redis-cli del server
43
-
44
38
echo " **** The Adafruit WebIDE is now uninstalled! ****"
45
39
echo " **** During the installation process, there were a few ****"
46
40
echo " **** libraries installed that we did not uninstall as ****"
47
41
echo " **** we're not able to determine if other applications are dependent ****"
48
42
echo " **** on them. If you are not using them, you can uninstall by executing ****"
49
43
echo " **** the following command: ****"
50
- echo " **** sudo apt-get remove nodejs npm redis-server git restartd libcap2-bin avahi-daemon i2c-tools python-smbus ****"
44
+ echo " **** sudo apt-get remove nodejs-legacy yarn git libcap2-bin i2c-tools python-smbus ntp libkrb5-dev ****"
0 commit comments