summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorJustin Wyer <justin@lifeasageek.com>2017-04-25 18:37:57 +0200
committerCorey Hulen <corey@hulen.com>2017-04-25 09:37:57 -0700
commit83ca76f8f2bfef819ba928dd1e5c94d65eed46cf (patch)
tree6bd87c71a1d9bce0afd4ff92c97ba21c629b2868 /model/config.go
parentf1668bad15d27e6e2b40e5079f0b878603b33684 (diff)
downloadchat-83ca76f8f2bfef819ba928dd1e5c94d65eed46cf.tar.gz
chat-83ca76f8f2bfef819ba928dd1e5c94d65eed46cf.tar.bz2
chat-83ca76f8f2bfef819ba928dd1e5c94d65eed46cf.zip
PLT-4113 Added default for FileSettings.Directory (#6188)
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 303d7bb75..0c3307a06 100644
--- a/model/config.go
+++ b/model/config.go
@@ -487,6 +487,10 @@ func (o *Config) SetDefaults() {
o.FileSettings.InitialFont = "luximbi.ttf"
}
+ if o.FileSettings.Directory == "" {
+ o.FileSettings.Directory = "./data/"
+ }
+
if len(o.EmailSettings.InviteSalt) == 0 {
o.EmailSettings.InviteSalt = NewRandomString(32)
}