correct permissions
This commit is contained in:
parent
ac469598a4
commit
5b1a62b858
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
state: directory
|
||||
owner: justlog
|
||||
group: justlog
|
||||
mode: 0740
|
||||
mode: 0770
|
||||
|
||||
- name: create config file
|
||||
template:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue