summaryrefslogtreecommitdiffstats
path: root/utils/license.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/license.go')
-rw-r--r--utils/license.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/license.go b/utils/license.go
index 2853a58d0..cf874b62b 100644
--- a/utils/license.go
+++ b/utils/license.go
@@ -12,6 +12,7 @@ import (
"encoding/pem"
"io/ioutil"
"os"
+ "path/filepath"
"strconv"
"strings"
@@ -114,7 +115,7 @@ func GetLicenseFileFromDisk(fileName string) []byte {
func GetLicenseFileLocation(fileLocation string) string {
if fileLocation == "" {
configDir, _ := FindDir("config")
- return configDir + "mattermost.mattermost-license"
+ return filepath.Join(configDir, "mattermost.mattermost-license")
} else {
return fileLocation
}