mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix tar error when sending /etc/nginx to BW
This commit is contained in:
parent
9edf789ab8
commit
d143720750
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ class ApiCaller:
|
|||
ret = True
|
||||
with BytesIO() as tgz:
|
||||
with taropen(mode="w:gz", fileobj=tgz, dereference=True) as tf:
|
||||
tf.add(path, arcname=sep)
|
||||
tf.add(path, arcname=".")
|
||||
tgz.seek(0, 0)
|
||||
files = {"archive.tar.gz": tgz}
|
||||
if not self._send_to_apis("POST", url, files=files):
|
||||
|
|
|
|||
Loading…
Reference in a new issue