From aaf5764f6a4eb27e8f8ecfdc77dbf682273c2577 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 30 Jan 2022 23:37:32 +0100 Subject: [PATCH] Update check-nextcloud --- check-nextcloud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-nextcloud b/check-nextcloud index 9251737..580cb5c 100644 --- a/check-nextcloud +++ b/check-nextcloud @@ -78,7 +78,7 @@ def occ (command:str, nc_www_user:str, nc_path:str, nc_php_version:str="", outpu if output != "": cmd = cmd + f" --output {output}" - _proc = subprocess.Popen([ cmd ], shell=True, cwd=nc_path if docker_container != None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + _proc = subprocess.Popen([ cmd ], shell=True, cwd=nc_path if docker_container is not None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = _proc.communicate() if (stderr):