mirror of
https://github.com/hay-kot/homebox.git
synced 2025-10-07 14:37:22 +00:00
backend: Pluggable blob storage supporting attachment documents
This commit is contained in:
parent
aace77ec40
commit
03525db494
7 changed files with 153 additions and 35 deletions
|
@ -75,11 +75,6 @@ func run(cfg *config.Config) error {
|
|||
// =========================================================================
|
||||
// Initialize Database & Repos
|
||||
|
||||
err := os.MkdirAll(cfg.Storage.Data, 0o755)
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("failed to create data directory")
|
||||
}
|
||||
|
||||
c, err := ent.Open("sqlite3", cfg.Storage.SqliteURL)
|
||||
if err != nil {
|
||||
log.Fatal().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue