From 376e38942b4be954f4f9c42074c8ceea5604c59a Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 25 Oct 2021 21:26:52 +0300 Subject: [PATCH] Changed command shell routing parameters --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3dca1f4..fcfe060 100755 --- a/main.py +++ b/main.py @@ -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]