Skip to content

Commit 8847751

Browse files
committed
setup unintall for systemd and no restartd
1 parent ffac7e8 commit 8847751

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Diff for: scripts/uninstall.sh

+8-14
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ WEBIDE_ROOT="/usr/share/adafruit"
77
WEBIDE_HOME="/home/webide"
88
NODE_PATH=""
99

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-
1710
echo "**** Removing webide user from sudoers ****"
1811
if [ -f "/etc/sudoers.tmp" ]; then
1912
rm /etc/sudoers.tmp
@@ -30,21 +23,22 @@ echo "**** Stopping the Adafruit WebIDE ****"
3023
service adafruit-webide.sh stop
3124
sleep 5s
3225

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+
3633
echo "**** Removing the WebIDE Folder ****"
3734
rm -rf "$WEBIDE_ROOT"
3835
echo "**** Removing webide user ****"
3936
userdel -r webide
4037

41-
echo "**** Removing redis server setting ****"
42-
redis-cli del server
43-
4438
echo "**** The Adafruit WebIDE is now uninstalled! ****"
4539
echo "**** During the installation process, there were a few ****"
4640
echo "**** libraries installed that we did not uninstall as ****"
4741
echo "**** we're not able to determine if other applications are dependent ****"
4842
echo "**** on them. If you are not using them, you can uninstall by executing ****"
4943
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

Comments
 (0)