Browse Source

部署修改

zhangjinkun 5 years ago
parent
commit
3b1f30071a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/jy/cluster/ssh.go

+ 2 - 1
src/jy/cluster/ssh.go

@@ -46,12 +46,13 @@ func ssHConnect(user, password, host string, port int) (*ssh.Session, error) {
 //wget https://www.jianyu360.com/upload/extract_v3.tgz
 var sshstr = `
 #!/bin/bash
+cd /opt
 kill -9 $(pidof extract_v3)
 rm -rf extract_v3*
 mkdir extract_v3
-cd /opt/extract_v3
 wget http://10.171.112.160:9090/res/extract_v3.tgz
 tar -xzvf extract_v3.tgz
+cd /opt/extract_v3
 chmod 777 extract_v3
 nohup ./extract_v3 >/opt/extract_v3/nohup 2>&1 &
 exit