Changed command shell routing parameters

This commit is contained in:
Illia Chub 2021-10-25 21:26:52 +03:00
parent 82821603f1
commit 376e38942b
No known key found for this signature in database
GPG key ID: 5D3581534C02467A

View file

@ -481,7 +481,7 @@ def ListAllBackups():
backupListingProcessDescriptor = subprocess.Popen(["restic", "-r", "b2:" +
request.headers.get("X-Repository-Name") + ":/sfbackup",
"snapshots", "list", "--password-file", "/var/lib/restic/rpass", "--json"
])
], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
snapshotsList = backupListingProcessDescriptor.communicate()[0]