|
|
@@ -11,8 +11,6 @@ import git
|
|
11
|
11
|
from paramiko import file
|
|
12
|
12
|
import pymssql
|
|
13
|
13
|
|
|
14
|
|
-#Test update
|
|
15
|
|
-#This message will show up when patch successfully
|
|
16
|
14
|
window = tkinter.Tk()
|
|
17
|
15
|
settings =[]
|
|
18
|
16
|
customer_code = ''
|
|
|
@@ -46,8 +44,7 @@ def sshConnect(cs, sd):
|
|
46
|
44
|
data_root_dir = './data/'+cs+sd
|
|
47
|
45
|
stdin, stdout, stderr = ssh.exec_command('mkdir ' + data_root_dir)
|
|
48
|
46
|
#TODO: 여기에 도커 명령어 및 동시 녹화 코드 입력
|
|
49
|
|
- cmd = 'docker run --rm --name mail_recorder --gpus 1 --privileged -v /dev:/dev -v /home/mc365/sources:/sources -v /home/mc365/data/'+cs+sd+':/data/'+cs+sd+' stereolabs/zed:3.5-gl-devel-cuda11.1-ubuntu18.04 python3 /sources/rec_ubuntu.py'
|
|
50
|
|
- print(cmd)
|
|
|
47
|
+ cmd = 'python3 /home/mc365/sources/rec_ubuntu.py'
|
|
51
|
48
|
stdin, stdout, stderr = ssh.exec_command(cmd)
|
|
52
|
49
|
f = open(filepath, 'w')
|
|
53
|
50
|
r_time = time.ctime(time.time())
|
|
|
@@ -168,7 +165,7 @@ if __name__ == "__main__":
|
|
168
|
165
|
stdout, stderr = check_git.communicate()
|
|
169
|
166
|
if (stdout != "Already up to date.\n"):
|
|
170
|
167
|
print('stdout not match')
|
|
171
|
|
- messagebox.showinfo("365mc MAIL System","프로그램이 업데이트되었습니다. 프로그램을 재시작합니다.")
|
|
|
168
|
+ messagebox.showinfo("365mc MAIL System","프로그램이 업데이트되었습니다. 프로그램을 재시작해주세요.")
|
|
172
|
169
|
pass
|
|
173
|
170
|
else:
|
|
174
|
171
|
window.mainloop()
|