-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkillnode.sh
More file actions
44 lines (32 loc) · 1.09 KB
/
killnode.sh
File metadata and controls
44 lines (32 loc) · 1.09 KB
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
#!/usr/bin/env sh
[ $SUDO_USER ] && _user=$SUDO_USER || _user=`whoami`
echo '**************************'
echo 'Disabling XEROMs Service'
echo '**************************'
#disable node service
sudo systemctl disable xeronode.service
echo '**************************'
echo 'Stopping XEROMs Service'
echo '**************************'
#stop node service
sudo systemctl stop xeronode.service
echo '**************************'
echo 'Removing XEROMs Geth Binary'
echo '**************************'
#removes geth binary
sudo rm -r /usr/sbin/geth-linux-amd64
echo '**************************'
echo 'Removing XEROMs .service File'
echo '**************************'
#deletes the .service file
sudo rm -r /etc/systemd/system/xeronode.service
echo '**************************'
echo 'Deleting XEROMs Database'
echo '**************************'
#removes geths database and files
sudo rm -r .xerom
echo '**************************'
echo 'Removing XERO Dashboard, install and kill scripts'
echo '**************************'
#removes node dashboard, install script and this script
sudo rm -r dashboard xero.sh killnode.sh