summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
commitcef7a1aae4205ebf4fbd8958f1f870ff69759edf (patch)
treea3bbd45979a89f9a4030f750b1a30099d7e565b9 /utils
parente644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff)
downloadchat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.gz
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.bz2
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.zip
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/config.go b/utils/config.go
index 0eb8329d1..eed627448 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -11,6 +11,8 @@ import (
"strconv"
l4g "code.google.com/p/log4go"
+
+ "github.com/mattermost/platform/model"
)
const (
@@ -26,7 +28,6 @@ type ServiceSettings struct {
AllowTesting bool
UseSSL bool
Port string
- Version string
InviteSalt string
PublicLinkSalt string
ResetSalt string
@@ -275,7 +276,10 @@ func getSanitizeOptions(c *Config) map[string]bool {
func getClientProperties(c *Config) map[string]string {
props := make(map[string]string)
- props["Version"] = c.ServiceSettings.Version
+ props["Version"] = model.GetFullVersion()
+ props["BuildNumber"] = model.BUILD_NUMBER
+ props["BuildDate"] = model.BUILD_DATE
+
props["SiteName"] = c.ServiceSettings.SiteName
props["ByPassEmail"] = strconv.FormatBool(c.EmailSettings.ByPassEmail)
props["FeedbackEmail"] = c.EmailSettings.FeedbackEmail