This commit is contained in:
xyj 2023-12-02 11:13:21 +08:00
parent 5387def012
commit fa3363e478
2 changed files with 3 additions and 3 deletions

View File

@ -394,7 +394,7 @@ class UPLOAD:
def on_connect(self, client, userdata, flags, rc):
from threading import Thread
if rc == 0:
print("连接成功,执行数据推送和本地存储")
# print("连接成功,执行数据推送和本地存储")
nt1 = Thread(target=self.t1)
nt1.start()
else:
@ -402,7 +402,7 @@ class UPLOAD:
self.times -= 1
client.reconnect()
else:
print("3次失败执行本地存储")
# print("3次失败执行本地存储")
nt2 = Thread(target=self.t2)
nt2.start()

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
# git更新
git pull origin device1
git pull origin master
# 配置文件复制到supervisor管理
cp -r conf/*.conf /etc/supervisor/conf.d/
# 更新配置文件