From f9d8cea66f4df7aa233db0baac45ae6ddb50e112 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Tue, 16 Aug 2016 21:15:55 +0200 Subject: [PATCH] Create sentries directory if not exist (fix #19) --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index a598dc7..8f84644 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,8 @@ func init() { xmpp.Secret = mapConfig["xmpp_secret"] xmpp.Debug = mapConfig["xmpp_debug"] == "true" gateway.XmppJidComponent = xmpp.JidStr + + os.MkdirAll(gateway.SentryDirectory, 0700) } func main() {