From 4b39d6e4f9d669d99be0aa34e80f44284dbedbf6 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 25 Oct 2021 21:21:55 +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 63d6cc5..80d700d 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", "--password-file", "/var/lib/restic/rpass", "--json" - ], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + ]) snapshotsList = backupListingProcessDescriptor.communicate()[0]