Browse Source

cryptpad user permissions

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

+ 3
- 1
src/freedombone-app-cryptpad View File

159
     set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
159
     set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
160
 
160
 
161
     cd $CRYPTPAD_DIR
161
     cd $CRYPTPAD_DIR
162
-    chown -R cryptpad:cryptpad *
163
 
162
 
164
     systemctl start cryptpad
163
     systemctl start cryptpad
165
 }
164
 }
300
 
299
 
301
     # an unprivileged user to run as
300
     # an unprivileged user to run as
302
     useradd -d $CRYPTPAD_DIR/ cryptpad
301
     useradd -d $CRYPTPAD_DIR/ cryptpad
302
+    chgrp -R ssl-cert /etc/letsencrypt
303
+    chmod -R g=rX /etc/letsencrypt
304
+    usermod -a -G ssl-cert cryptpad
303
 
305
 
304
     cd $CRYPTPAD_DIR
306
     cd $CRYPTPAD_DIR
305
     git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
307
     git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT