From e2cb336792a3529c0730579a28a6b0ef0dbbbeef Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 27 May 2017 19:07:34 +0100 Subject: [PATCH] cryptpad user permissions --- src/freedombone-app-cryptpad | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 4fd98333..d9810165 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -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