Skip to content

Commit ad42f1d

Browse files
committed
fix(internal/conf): unable to find dist folder
1 parent e28192a commit ad42f1d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

internal/bootstrap/config.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ func InitConfig() {
8282
conf.Conf.Database.DBFile = filepath.Join(flags.DataDir, "data.db")
8383
conf.Conf.TempDir = filepath.Join(flags.DataDir, "temp")
8484
conf.Conf.BleveDir = filepath.Join(flags.DataDir, "bleve")
85-
if conf.Conf.Log.Enable {
86-
conf.Conf.Log.Name = filepath.Join(flags.DataDir, "log/log.log")
87-
}
88-
if conf.Conf.DistDir == "" {
89-
conf.Conf.DistDir = filepath.Join(flags.DataDir, "dist")
90-
}
85+
conf.Conf.Log.Name = filepath.Join(flags.DataDir, "log/log.log")
9186
}
9287
LastLaunchedVersion = conf.Conf.LastLaunchedVersion
9388
if strings.HasPrefix(conf.Version, "v") || LastLaunchedVersion == "" {

0 commit comments

Comments
 (0)