nextcloud: Fail on errors when configuring the app

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-04-19 06:41:17 -04:00
1 parent fba3d6339b
commit 7c305fb295
1 file changed
+3 -2
+3 -2
View File
@@ -85,12 +85,13 @@ def setup():
_configure_systemd()
def _run_occ(*args, capture_output: bool = False):
def _run_occ(*args, capture_output: bool = False,
check: bool = True) -> subprocess.CompletedProcess:
"""Run the Nextcloud occ command inside the container."""
occ = [
'podman', 'exec', '--user', 'www-data', CONTAINER_NAME, 'php', 'occ'
] + list(args)
return subprocess.run(occ, capture_output=capture_output, check=False)
return subprocess.run(occ, capture_output=capture_output, check=check)
@privileged