Fix echo lines to match and run main
This commit is contained in:
parent
e7bedec4dc
commit
dc7b416e57
@ -14,12 +14,13 @@ 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
|
||||
@ -32,4 +33,4 @@ main() {
|
||||
setup_root_user
|
||||
}
|
||||
|
||||
# main
|
||||
main
|
||||
|
Reference in New Issue
Block a user