mirror of
https://github.com/go-shiori/shiori.git
synced 2025-03-11 23:34:20 +08:00
fix: --storage-directory flag not being honored in the CLI (#981)
Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
This commit is contained in:
parent
027c56d02e
commit
9492075d32
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ func initShiori(ctx context.Context, cmd *cobra.Command) (*config.Config, *depen
|
||||||
cfg := config.ParseServerConfiguration(ctx, logger)
|
cfg := config.ParseServerConfiguration(ctx, logger)
|
||||||
cfg.LogLevel = logger.Level.String()
|
cfg.LogLevel = logger.Level.String()
|
||||||
|
|
||||||
if storageDirectory != "" && cfg.Storage.DataDir != "" {
|
if storageDirectory != "" {
|
||||||
logger.Warn("--storage-directory is set, overriding SHIORI_DIR.")
|
logger.Warn("--storage-directory is set, overriding SHIORI_DIR.")
|
||||||
cfg.Storage.DataDir = storageDirectory
|
cfg.Storage.DataDir = storageDirectory
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue