cryptpad user permissions

This commit is contained in:
Bob Mottram 2017-05-27 19:07:34 +01:00
parent 2508d63134
commit e2cb336792
1 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,6 @@ function upgrade_cryptpad {
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
cd $CRYPTPAD_DIR
chown -R cryptpad:cryptpad *
systemctl start cryptpad
}
@ -300,6 +299,9 @@ 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
cd $CRYPTPAD_DIR
git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT