mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 修复容器名称与环境变量已正确显示无法重启的bug
2. 发布更新说明
This commit is contained in:
@@ -84,7 +84,7 @@ def do_restart(request):
|
||||
try:
|
||||
print('重启')
|
||||
# print(os.system('pwd'))
|
||||
if os.environ.get('DJANGO_DEBUG'):
|
||||
if os.environ.get('CONTAINER_NAME'):
|
||||
subprocess.Popen('chmod +x ./restart.sh', shell=True)
|
||||
subprocess.Popen('./restart.sh', shell=True)
|
||||
return JsonResponse(data=CommonResponse.success(
|
||||
|
||||
Reference in New Issue
Block a user