浏览代码

Remove unnecessary onion only conditions

Bob Mottram 7 年前
父节点
当前提交
cd3d73ac84
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0
    9
      src/freedombone-app-cryptpad

+ 0
- 9
src/freedombone-app-cryptpad 查看文件

@@ -199,11 +199,6 @@ function install_cryptpad_main {
199 199
 
200 200
     # an unprivileged user to run as
201 201
     useradd -d $CRYPTPAD_DIR/ cryptpad
202
-    if [[ $ONION_ONLY == "no" ]]; then
203
-        chgrp -R ssl-cert /etc/letsencrypt
204
-        chmod -R g=rX /etc/letsencrypt
205
-        usermod -a -G ssl-cert cryptpad
206
-    fi
207 202
 
208 203
     cd $CRYPTPAD_DIR
209 204
     git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
@@ -282,10 +277,6 @@ function install_cryptpad_main {
282 277
 }
283 278
 
284 279
 function install_cryptpad {
285
-    if [ ! $ONION_ONLY ]; then
286
-        ONION_ONLY='no'
287
-    fi
288
-
289 280
     function_check install_nodejs
290 281
     install_nodejs cryptpad
291 282