修复重启功能

This commit is contained in:
ngfchl
2022-09-13 22:50:49 +08:00
parent 375b1fa244
commit 8960b5b6fe

View File

@@ -244,7 +244,7 @@ def do_update(request):
print('更新完毕,开始重启')
cid = request.GET.get('cid')
flag = (cid == '')
if flag:
if not flag:
subprocess.Popen('docker restart {}'.format(cid), shell=True, stdout=subprocess.PIPE, )
# out = reboot.stdout.readline().decode('utf8')
# client.api.inspect_container(cid)