mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
loosen perms on bolt mq (#910)
the bolt mq file should only be used for local dev and isn't necessarily sensitive, don't think 0655 restriction was necessary and the data isn't likely all that sensitive anyway. see https://github.com/fnproject/fn/issues/404#issuecomment-377570626
This commit is contained in:
@@ -60,7 +60,7 @@ func NewBoltMQ(url *url.URL) (*BoltDbMQ, error) {
|
||||
log.WithError(err).Errorln("Could not create data directory for mq")
|
||||
return nil, err
|
||||
}
|
||||
db, err := bolt.Open(url.Path, 0655, &bolt.Options{Timeout: 1 * time.Second})
|
||||
db, err := bolt.Open(url.Path, 0666, &bolt.Options{Timeout: 1 * time.Second})
|
||||
if err != nil {
|
||||
log.WithError(err).Errorln("Could not open BoltDB file for MQ")
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user