mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-09-18 01:25:54 +00:00
fix parsing error due to missing close bracket
This commit is contained in:
parent
7853bf9808
commit
8d6726c6e2
@ -87,7 +87,7 @@ func getValidUsers(share model2.SharesDBModel) string {
|
||||
if !share.Anonymous && len(share.Valid_users) > 0 {
|
||||
users := `valid users =`
|
||||
for _, user := range share.Valid_users {
|
||||
users += " " + user
|
||||
users = " " + user
|
||||
}
|
||||
return users + "\n"
|
||||
}
|
||||
@ -113,6 +113,7 @@ create mask = 0777
|
||||
directory mask = 0777
|
||||
` + forceRoot(share) + `
|
||||
` + getValidUsers(share)
|
||||
}
|
||||
// write config file
|
||||
file.WriteToPath([]byte(configStr), "/etc/samba", "smb.casa.conf")
|
||||
// restart samba
|
||||
|
Loading…
x
Reference in New Issue
Block a user