diff options
author | Slack Coder <slackcoder@server.ky> | 2024-10-21 08:59:36 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-10-21 08:59:36 -0500 |
commit | dd3d5cfc0014e5f7ce529602cac09a1de41bdc3d (patch) | |
tree | 979d8c5f64fb5c537a79d8473d094a6796c7e889 /internal/service/service.go | |
parent | 001262c0fff1944e1238362d510051bb50bb6b13 (diff) | |
download | mirror-dd3d5cfc0014e5f7ce529602cac09a1de41bdc3d.tar.xz |
Support multiple config files
Read files from /etc/mirror/conf.d.
Diffstat (limited to 'internal/service/service.go')
-rw-r--r-- | internal/service/service.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/service/service.go b/internal/service/service.go index 637a1cf..21df14b 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -32,7 +32,7 @@ type Service struct { func NewService(cfg *Config) (*Service, error) { // Apply defaults - cfg.Merge(&DefaultConfig) + cfg.Append(&DefaultConfig) for _, cmd := range requiredCommands { if err := internal.RequireCommand(cmd); err != nil { |