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:
Mahmoud Emad
2025-01-09 13:31:57 +02:00
parent 1fbb5bed4a
commit 3b580dcc1d
2 changed files with 29 additions and 15 deletions

View File

@@ -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 {