1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-06 23:37:26 +02:00

create default config if it does not already exist (#1304)

This commit is contained in:
Tiger Wang
2023-07-31 16:53:03 +08:00
committed by GitHub
parent 5dc6297047
commit 0cf353c56e
7 changed files with 66 additions and 90 deletions

View File

@ -77,7 +77,7 @@ func init() {
}
}
config.InitSetup(configFlag)
config.InitSetup(configFlag, "")
if len(dbFlag) == 0 {
dbFlag = config.AppInfo.DBPath + "/db"