瀏覽代碼

Remove tahoelafs more cleanly

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

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

@@ -272,6 +272,9 @@ function install_interactive_tahoelafs {
272 272
 }
273 273
 
274 274
 function upgrade_tahoelafs {
275
+    if [ ! -d /home/tahoelafs/tahoelafs ]; then
276
+        return
277
+    fi
275 278
     systemctl stop tahoelafs
276 279
     function_check set_repo_commit
277 280
     set_repo_commit /home/tahoelafs/tahoelafs "tahoelafs commit" "$TAHOELAFS_COMMIT" $TAHOELAFS_REPO
@@ -388,6 +391,7 @@ function remove_tahoelafs {
388 391
     if [ -f /etc/nginx/.htpasswd-tahoelafs ]; then
389 392
         shred -zu /etc/nginx/.htpasswd-tahoelafs
390 393
     fi
394
+    remove_completion_param "tahoelafs commit"
391 395
     systemctl reload tor
392 396
 }
393 397