mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复重启功能
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user