瀏覽代碼

Removing tahoe-lafs daemon

Bob Mottram 8 年之前
父節點
當前提交
fa0eba1108
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-app-tahoelafs

+ 7
- 0
src/freedombone-app-tahoelafs 查看文件

@@ -170,6 +170,10 @@ function reconfigure_tahoelafs {
170 170
 }
171 171
 
172 172
 function remove_tahoelafs {
173
+    systemctl stop tahoelafs
174
+    systemctl disable tahoelafs
175
+    rm /etc/systemd/system/tahoelafs.service
176
+
173 177
     firewall_remove ${TAHOELAFS_PORT}
174 178
     rm -rf /var/lib/tahoelafs
175 179
     remove_completion_param install_tahoelafs
@@ -177,6 +181,9 @@ function remove_tahoelafs {
177 181
     function_check remove_onion_service
178 182
     remove_onion_service tahoelafs ${TAHOELAFS_ONION_PORT}
179 183
     deluser tahoelafs
184
+    if [ -d /home/tahoelafs ]; then
185
+        rm -rf /home/tahoelafs
186
+    fi
180 187
     remove_app tahoelafs
181 188
 }
182 189