#!/bin/sh

PATH=@l_prefix@/bin:$PATH; export PATH
HOME=@l_prefix@/var/gogs/tmp; export HOME

cd @l_prefix@/share/gogs || exit $?

exec @l_prefix@/share/gogs/gogs \
    update \
    --config "@l_prefix@/etc/gogs/app.ini" \
    ${1+"$@"}

