#!/bin/sh
[ -r ./conf ] && . ./conf
: ${USER:=gogs}
: ${GROUP:=gogs}
: ${HOME:=/srv/gogs}
exec 2>&1
cd $HOME
export HOME
export USER
exec chpst -u $USER:$GROUP -P \
gogs web --config /etc/gogs.ini
