Create sentries directory if not exist (fix #19)

This commit is contained in:
Chteufleur 2016-08-16 21:15:55 +02:00
parent e0c08b5760
commit f9d8cea66f
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ func init() {
xmpp.Secret = mapConfig["xmpp_secret"] xmpp.Secret = mapConfig["xmpp_secret"]
xmpp.Debug = mapConfig["xmpp_debug"] == "true" xmpp.Debug = mapConfig["xmpp_debug"] == "true"
gateway.XmppJidComponent = xmpp.JidStr gateway.XmppJidComponent = xmpp.JidStr
os.MkdirAll(gateway.SentryDirectory, 0700)
} }
func main() { func main() {