fix: also ensure server is created with 0600
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
See 6849e3554d
This commit is contained in:
@ -12,7 +12,7 @@ import (
|
|||||||
func CreateServerDir(serverName string) error {
|
func CreateServerDir(serverName string) error {
|
||||||
serverPath := path.Join(config.ABRA_DIR, "servers", serverName)
|
serverPath := path.Join(config.ABRA_DIR, "servers", serverName)
|
||||||
|
|
||||||
if err := os.Mkdir(serverPath, 0764); err != nil {
|
if err := os.Mkdir(serverPath, 0600); err != nil {
|
||||||
if !os.IsExist(err) {
|
if !os.IsExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user