You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/cmd
wxiaoguang 042cac5fed
Improve install code to avoid low-level mistakes. (#17779)
* Improve install code to avoid low-level mistakes.

If a user tries to do a re-install in a Gitea database, they gets a warning and double check.
When Gitea runs, it never create empty app.ini automatically.

Also some small (related) refactoring:

* Refactor db.InitEngine related logic make it more clean (especially for the install code)
* Move some i18n strings out from setting.go to make the setting.go can be easily maintained.
* Show errors in CLI code if an incorrect app.ini is used.
* APP_DATA_PATH is created when installing, and checked when starting (no empty directory is created any more).
3 years ago
..
admin.go Move user related model into models/user (#17781) 3 years ago
admin_auth_ldap.go Fix bug on admin subcommand (#17533) 3 years ago
admin_auth_ldap_test.go Fix bug on admin subcommand (#17533) 3 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
convert.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
docs.go Fix offBy1 errors (#17606) 3 years ago
doctor.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
dump.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
dump_repo.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
embedded.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
embedded_stub.go Add bundle download for repository (#14538) 3 years ago
generate.go Add asymmetric JWT signing (#16010) 3 years ago
hook.go Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 3 years ago
hook_test.go Add agit flow support in gitea (#14295) 3 years ago
keys.go Second attempt at preventing zombies (#16326) 3 years ago
mailer.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
manager.go Second attempt at preventing zombies (#16326) 3 years ago
migrate.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
migrate_storage.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
restore_repo.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
serv.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
web.go Improve install code to avoid low-level mistakes. (#17779) 3 years ago
web_graceful.go Make SSL cipher suite configurable (#17440) 3 years ago
web_https.go Add user settings key/value DB table (#16834) 3 years ago
web_letsencrypt.go Make SSL cipher suite configurable (#17440) 3 years ago