#!/bin/bash set -eu -o pipefail setup_db() { set -eu if [ -f "/data/gitea/conf/app.ini" ]; then echo "=====> Running database migration" gitea migrate fi } setup_ports() { set -eu /usr/bin/dokku proxy:ports-add http:80:3000 } main() { set -eu setup_db setup_ports } main