Compare commits

..

No commits in common. "4e99463b097cdfdca1984d3117e872838ef2f360" and "94ee8ae79a29272f0062b55163e788964e0e40a7" have entirely different histories.

3 changed files with 2 additions and 10 deletions

View File

@ -7,7 +7,7 @@ autostart=true
;失败重启
autorestart=true
;重启次数
restart_times=10
restart_times=3
redirect_stderr=true
stopsignal=TERM
stopasgroup=True

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -e
git add .
git commit -m 'update'
git push -f origin master

View File

@ -19,10 +19,7 @@ def exec_sh(msg):
cmd = json.loads(msg.payload.decode('utf-8'))["data"]
if cmd == "supervisorctl stop __mqtt__":
return
p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
output = out.decode('utf-8')
print(output)
subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def update():