You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
407 B
20 lines
407 B
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"git.aiterp.net/lucifer/lucifer/database/sqlite"
|
|
"git.aiterp.net/lucifer/lucifer/internal/config"
|
|
)
|
|
|
|
func main() {
|
|
conf, err := config.Load("./config.yaml", "/etc/lucifer/lucifer.yaml")
|
|
if err != nil {
|
|
log.Fatalln("Failed to load configuration:", err)
|
|
}
|
|
|
|
err = sqlite.Initialize(conf.DB.FileName)
|
|
if err != nil {
|
|
log.Fatalln("Failed to set up database:", err)
|
|
}
|
|
}
|