Commit 010adfb4 authored by ligaishun's avatar ligaishun

修复反馈接口500错误

parent fcc2b2be
......@@ -405,8 +405,7 @@ func GetPubKey()string{
func Preprocessing(){//判断密钥对是否存在,存在则删除
_, err := os.Stat("/root/.ssh")
if err == nil || os.IsExist(err){
err=os.RemoveAll("/root/.ssh")
tlog.Info(err.Error())
os.RemoveAll("/root/.ssh")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment