Static bug (#204)

* 紧急修复下载文件后静态文件404问题

* 紧急修复监控白屏问题
pull/206/head
liuzheng 2016-04-20 13:08:26 +08:00 committed by ibuler
parent cca15d4211
commit e2eb9b72f8
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ def download(request):
FileLog(user=request.user.username, host=' '.join([asset.hostname for asset in asset_select]),
filename=file_path, type='download', remote_ip=remote_ip, result=runner.results).save()
logger.debug(runner.results)
os.chdir('/tmp')
# os.chdir('/tmp')
tmp_dir_name = os.path.basename(upload_dir)
tar_file = '%s.tar.gz' % upload_dir
bash('tar czf %s %s' % (tar_file, tmp_dir_name))