Only change user permissions if not in onion mode
This commit is contained in:
parent
e2cb336792
commit
187a86c6bd
|
@ -299,9 +299,11 @@ function install_cryptpad_main {
|
|||
|
||||
# an unprivileged user to run as
|
||||
useradd -d $CRYPTPAD_DIR/ cryptpad
|
||||
chgrp -R ssl-cert /etc/letsencrypt
|
||||
chmod -R g=rX /etc/letsencrypt
|
||||
usermod -a -G ssl-cert cryptpad
|
||||
if [[ $ONION_ONLY == "no" ]]; then
|
||||
chgrp -R ssl-cert /etc/letsencrypt
|
||||
chmod -R g=rX /etc/letsencrypt
|
||||
usermod -a -G ssl-cert cryptpad
|
||||
fi
|
||||
|
||||
cd $CRYPTPAD_DIR
|
||||
git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
|
||||
|
|
Loading…
Reference in New Issue