|
@@ -62,6 +62,40 @@ function remove_tox_node {
|
62
|
62
|
exit 763836
|
63
|
63
|
fi
|
64
|
64
|
sed -i '/install_tox_node/d' $COMPLETION_FILE
|
|
65
|
+ sed -i '/configure_firewall_for_tox/d' $COMPLETION_FILE
|
|
66
|
+}
|
|
67
|
+
|
|
68
|
+function remove_tox_avahi {
|
|
69
|
+ if ! grep -Fxq "tox_avahi" $COMPLETION_FILE; then
|
|
70
|
+ return
|
|
71
|
+ fi
|
|
72
|
+ cd $INSTALL_DIR/toxid
|
|
73
|
+ make uninstall
|
|
74
|
+ rm -rf $INSTALL_DIR/toxid
|
|
75
|
+ sed -i '/toxavahi/d' /etc/crontab
|
|
76
|
+ systemctl restart cron
|
|
77
|
+ sed -i '/tox_avahi/d' $COMPLETION_FILE
|
|
78
|
+}
|
|
79
|
+
|
|
80
|
+function remove_tox_client {
|
|
81
|
+ if ! grep -Fxq "install_tox_client" $COMPLETION_FILE; then
|
|
82
|
+ return
|
|
83
|
+ fi
|
|
84
|
+
|
|
85
|
+ ${PROJECT_NAME}-mesh-install -f tox_client --remove yes
|
|
86
|
+ if [ ! "$?" = "0" ]; then
|
|
87
|
+ echo $'Could not remove Tox client'
|
|
88
|
+ exit 737253
|
|
89
|
+ fi
|
|
90
|
+ sed -i '/install_tox_client/d' $COMPLETION_FILE
|
|
91
|
+ sed -i '/Tox /d' $COMPLETION_FILE
|
|
92
|
+ sed -i '/Toxic /d' $COMPLETION_FILE
|
|
93
|
+}
|
|
94
|
+
|
|
95
|
+function remove_tox {
|
|
96
|
+ remove_tox_client
|
|
97
|
+ remove_tox_avahi
|
|
98
|
+ remove_tox_node
|
65
|
99
|
}
|
66
|
100
|
|
67
|
101
|
function configure_firewall_for_tox {
|