소스 검색

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