#!/bin/sh exec 2>&1 # USER and HOME are needed because gitea doesn't actually check the user it # runs as, but instead just grabs the variables from the variables. export USER=_forgejo export HOME=/data/var/forgejo # gitea needs to run from its home for SSH to work properly export GITEA_WORK_DIR="${HOME}" cd "${HOME}" exec chpst -u _forgejo:_forgejo /opt/bin/forgejo web --config /etc/forgejo.conf 2>&1