Match Dokku logs
This commit is contained in:
parent
bf75a7b7ee
commit
448ad5d1db
@ -5,7 +5,7 @@ set -eu -o pipefail
|
||||
setup_db() {
|
||||
set -eu
|
||||
|
||||
echo "====> Running database migration"
|
||||
echo "=====> Running database migration"
|
||||
gitea migrate
|
||||
}
|
||||
|
||||
@ -15,11 +15,11 @@ setup_root_user() {
|
||||
user_count=$(sqlite3 /data/gitea/gitea.db "select count(*) from user;")
|
||||
|
||||
if [[ "${user_count}" == "0" ]]; then
|
||||
echo "====> Setting up root user for first run"
|
||||
echo "=====> Setting up root user for first run"
|
||||
if gitea admin create-user --username "$ADMIN_USER" --password "$ADMIN_PASS" --email "$ADMIN_MAIL" --admin; then
|
||||
echo "====> root user added"
|
||||
echo "=====> root user added"
|
||||
else
|
||||
echo "====> Failed to add root user"
|
||||
echo "=====> Failed to add root user"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user