fix create user workspace failed in linux
This commit is contained in:
parent
bc08796f68
commit
44bdcb9fb5
|
@ -331,7 +331,7 @@ func UpdateCustomizedConf(username string) {
|
||||||
|
|
||||||
wd := util.OS.Pwd()
|
wd := util.OS.Pwd()
|
||||||
dir := filepath.Clean(wd + "/static/user/" + u.Name)
|
dir := filepath.Clean(wd + "/static/user/" + u.Name)
|
||||||
if err := os.MkdirAll(dir, 0664); nil != err {
|
if err := os.MkdirAll(dir, 0755); nil != err {
|
||||||
glog.Error(err)
|
glog.Error(err)
|
||||||
|
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
|
|
Loading…
Reference in New Issue