|
@@ -159,7 +159,6 @@ function upgrade_cryptpad {
|
159
|
159
|
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
|
160
|
160
|
|
161
|
161
|
cd $CRYPTPAD_DIR
|
162
|
|
- chown -R cryptpad:cryptpad *
|
163
|
162
|
|
164
|
163
|
systemctl start cryptpad
|
165
|
164
|
}
|
|
@@ -300,6 +299,9 @@ function install_cryptpad_main {
|
300
|
299
|
|
301
|
300
|
# an unprivileged user to run as
|
302
|
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
|
306
|
cd $CRYPTPAD_DIR
|
305
|
307
|
git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
|