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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-04-03 15:09:40 -07:00 committed by James Valleroy
parent 89e9fe2335
commit 03c7ddb0c4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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