#!/bin/sh

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

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

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

