From 03c7ddb0c46fd2e0710d3a73f94e230245762821 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 3 Apr 2024 15:09:40 -0700 Subject: [PATCH] nextcloud: Add network interface to firewall zone after creating it - The network interface will not exist until it is created with podman network. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/nextcloud/privileged.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/nextcloud/privileged.py b/plinth/modules/nextcloud/privileged.py index 7de3bab33..21d9a13c9 100644 --- a/plinth/modules/nextcloud/privileged.py +++ b/plinth/modules/nextcloud/privileged.py @@ -47,7 +47,6 @@ def setup(): database_password = _generate_secret_key(16) administrator_password = _generate_secret_key(16) _configure_db_socket() - _configure_firewall(action='add', interface_name=NETWORK_NAME) _create_database(database_password) action_utils.podman_run( network_name=NETWORK_NAME, subnet='172.16.16.0/24', @@ -58,6 +57,8 @@ def setup(): '--env=TRUSTED_PROXIES={BRIDGE_IP}', '--env=OVERWRITEWEBROOT=/nextcloud' ]) + _configure_firewall(action='add', interface_name=NETWORK_NAME) + # OCC isn't immediately available after the container is spun up. # Wait until CAN_INSTALL file is available. timeout = 300