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