Browse Source

Remove unnecessary onion only conditions

Bob Mottram 8 years ago
parent
commit
cd3d73ac84
1 changed files with 0 additions and 9 deletions
  1. 0
    9
      src/freedombone-app-cryptpad

+ 0
- 9
src/freedombone-app-cryptpad View File

199
 
199
 
200
     # an unprivileged user to run as
200
     # an unprivileged user to run as
201
     useradd -d $CRYPTPAD_DIR/ cryptpad
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
     cd $CRYPTPAD_DIR
203
     cd $CRYPTPAD_DIR
209
     git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
204
     git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
282
 }
277
 }
283
 
278
 
284
 function install_cryptpad {
279
 function install_cryptpad {
285
-    if [ ! $ONION_ONLY ]; then
286
-        ONION_ONLY='no'
287
-    fi
288
-
289
     function_check install_nodejs
280
     function_check install_nodejs
290
     install_nodejs cryptpad
281
     install_nodejs cryptpad
291
 
282