浏览代码

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