#!/bin/bash
echo 'restarting gitea'
[[ ! $GITEA_DIR ]] && export GITEA_DIR=$(dirname $(cd $(dirname $(readlink -f $BASH_SOURCE));pwd -P))
$GITEA_DIR/scripts/stop
$GITEA_DIR/scripts/start "$@"