cryptpad user permissions
This commit is contained in:
parent
2508d63134
commit
e2cb336792
|
@ -159,7 +159,6 @@ function upgrade_cryptpad {
|
||||||
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
|
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
|
||||||
|
|
||||||
cd $CRYPTPAD_DIR
|
cd $CRYPTPAD_DIR
|
||||||
chown -R cryptpad:cryptpad *
|
|
||||||
|
|
||||||
systemctl start cryptpad
|
systemctl start cryptpad
|
||||||
}
|
}
|
||||||
|
@ -300,6 +299,9 @@ function install_cryptpad_main {
|
||||||
|
|
||||||
# an unprivileged user to run as
|
# an unprivileged user to run as
|
||||||
useradd -d $CRYPTPAD_DIR/ cryptpad
|
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
|
cd $CRYPTPAD_DIR
|
||||||
git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
|
git checkout $CRYPTPAD_COMMIT -b $CRYPTPAD_COMMIT
|
||||||
|
|
Loading…
Reference in New Issue