mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-27 20:45:56 +00:00
config: Add a "data_dir" option
This patch adds a "data_dir" option, that chasquid will use to store persistent data. It defaults to "/var/lib/chasquid" (for now, at least). Users will come in subsequent patches.
This commit is contained in:
@@ -58,6 +58,10 @@ func Load(path string) (*Config, error) {
|
||||
"-d", "%user%")
|
||||
}
|
||||
|
||||
if c.DataDir == "" {
|
||||
c.DataDir = "/var/lib/chasquid"
|
||||
}
|
||||
|
||||
logConfig(c)
|
||||
return c, nil
|
||||
}
|
||||
@@ -70,4 +74,5 @@ func logConfig(c *Config) {
|
||||
glog.Infof(" Submission Addresses: %v", c.SubmissionAddress)
|
||||
glog.Infof(" Monitoring address: %s", c.MonitoringAddress)
|
||||
glog.Infof(" MDA: %s %v", c.MailDeliveryAgentBin, c.MailDeliveryAgentArgs)
|
||||
glog.Infof(" Data directory: %s", c.DataDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user