correct permissions

This commit is contained in:
gempir 2018-12-07 22:59:58 +01:00
parent ac469598a4
commit 5b1a62b858
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
state: directory
owner: justlog
group: justlog
mode: 0740
mode: 0770
- name: create config file
template:

View file

@ -16,7 +16,7 @@ func (l *Logger) LogMessageForChannel(channel string, user twitch.User, message
year := message.Time.Year()
month := int(message.Time.Month())
day := message.Time.Day()
err := os.MkdirAll(fmt.Sprintf(l.logPath+"/%s/%d/%d/%d", message.Tags["room-id"], year, month, day), 0740)
err := os.MkdirAll(fmt.Sprintf(l.logPath+"/%s/%d/%d/%d", message.Tags["room-id"], year, month, day), 0750)
if err != nil {
return err
}

View file

@ -27,7 +27,7 @@ func (l *Logger) LogMessageForUser(channel string, user twitch.User, message twi
year := message.Time.Year()
month := int(message.Time.Month())
err := os.MkdirAll(fmt.Sprintf(l.logPath+"/%s/%d/%d/", message.Tags["room-id"], year, month), 0740)
err := os.MkdirAll(fmt.Sprintf(l.logPath+"/%s/%d/%d/", message.Tags["room-id"], year, month), 0750)
if err != nil {
return err
}