mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
fba3d6339b
commit
7c305fb295
@ -85,12 +85,13 @@ def setup():
|
|||||||
_configure_systemd()
|
_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."""
|
"""Run the Nextcloud occ command inside the container."""
|
||||||
occ = [
|
occ = [
|
||||||
'podman', 'exec', '--user', 'www-data', CONTAINER_NAME, 'php', 'occ'
|
'podman', 'exec', '--user', 'www-data', CONTAINER_NAME, 'php', 'occ'
|
||||||
] + list(args)
|
] + list(args)
|
||||||
return subprocess.run(occ, capture_output=capture_output, check=False)
|
return subprocess.run(occ, capture_output=capture_output, check=check)
|
||||||
|
|
||||||
|
|
||||||
@privileged
|
@privileged
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user