set umask to 0011

This commit is contained in:
Simon Ding
2024-07-30 19:22:17 +08:00
parent 000717fcd9
commit d4dd2da335

View File

@@ -4,10 +4,14 @@ import (
"polaris/db"
"polaris/log"
"polaris/server"
"syscall"
)
func main() {
log.Infof("------------------- Starting Polaris ---------------------")
syscall.Umask(0011) //max permission 0766
dbClient, err := db.Open()
if err != nil {
log.Panicf("init db error: %v", err)