gitea/scripts/restart

6 lines
192 B
Plaintext
Raw Normal View History

#!/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 "$@"