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:
parent
666e850975
commit
4d30b555f6
1 changed files with 1 additions and 1 deletions
|
@ -29,6 +29,6 @@ case "$1" in
|
||||||
$FORGEJO_USER
|
$FORGEJO_USER
|
||||||
if ! dpkg-statoverride --list $FORGEJO_HOME >/dev/null ; then
|
if ! dpkg-statoverride --list $FORGEJO_HOME >/dev/null ; then
|
||||||
chown -R $FORGEJO_USER:$FORGEJO_GROUP $FORGEJO_HOME
|
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
|
fi
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue