This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
git.autonomic.zone/predeploy.sh
2020-03-15 08:42:50 +01:00

21 lines
227 B
Bash
Executable File

#!/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
}
main() {
set -eu
setup_db
}
main