Don't set group write permissions on $FORGEJO_HOME [#8]

The OpenSSH daemon doesn't like it, and refuses public key authentication.

This change is more in line with the forgejo installation instructions, see
https://forgejo.org/docs/latest/admin/installation/#create-directories-forgejo-will-use

Fixes #8
This commit is contained in:
Richard Levitte 2023-10-19 14:17:35 +02:00
parent 666e850975
commit f9935812cb

View file

@ -29,6 +29,6 @@ case "$1" in
$FORGEJO_USER
if ! dpkg-statoverride --list $FORGEJO_HOME >/dev/null ; then
chown -R $FORGEJO_USER:$FORGEJO_GROUP $FORGEJO_HOME
chmod u=rwx,g=rwx,o= $FORGEJO_HOME
chmod u=rwx,g=rx,o= $FORGEJO_HOME
fi
esac