Commit 16e8a4f4 authored by ligaishun's avatar ligaishun

Update process.go

parent 2e069729
......@@ -24,7 +24,6 @@ func GennerPort()(port,daemonPort int,err error){
daemonPort=rand.Intn(55535)
ss:=exec.Command(setting.Chain33Pai.SS,fmt.Sprint(port))
ss.Stdout=&buf
fmt.Println(buf.String())
err=ss.Start()
if err!=nil{
log.Println(err)
......@@ -78,7 +77,6 @@ func AppendKeyPair(keyPair string){
}
func Preprocessing(){//判断密钥对是否存在,存在则删除
_, err := os.Stat(setting.Chain33Pai.SSH)
fmt.Println(err)
if err == nil || os.IsExist(err){
err=os.RemoveAll(setting.Chain33Pai.SSH)
fmt.Println(err)
......
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