21 lines
227 B
Bash
Executable File
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
|