fix: improve gitea and postgresql installation
- Improve the installation process for Gitea and PostgreSQL. - Change the location of the Gitea config file to `/etc`. - Add a health check for the PostgreSQL container. - Ensure the Gitea user is created only if it doesn't exist. - Add a restart command for Gitea to ensure it starts after. - Improve error handling during user creation. - Simplify PostgreSQL configuration in Gitea actions.
This commit is contained in:
@@ -41,10 +41,7 @@ pub fn get(args_ ArgsGet) !&Postgresql {
|
||||
}
|
||||
config_load()!
|
||||
}
|
||||
return postgresql_global[args.name] or {
|
||||
println(postgresql_global)
|
||||
panic('bug in get from factory: ')
|
||||
}
|
||||
return postgresql_global[args.name] or { panic('bug in get from factory: ') }
|
||||
}
|
||||
|
||||
fn config_exists(args_ ArgsGet) bool {
|
||||
|
||||
Reference in New Issue
Block a user