Removed ignore errors from db management in discourse

This commit is contained in:
2025-07-10 11:44:35 +02:00
parent 41d023abee
commit 707cc9d2d1
6 changed files with 25 additions and 16 deletions

View File

@@ -133,7 +133,7 @@ def update_discourse(directory):
update_procedure("docker stop {{applications.discourse.container}}")
update_procedure("docker rm {{applications.discourse.container}}")
try:
update_procedure("docker network connect {{applications.discourse.network}} central-postgres")
update_procedure("docker network connect {{applications.discourse.network}} {{ applications.postgres.hostname }}")
except subprocess.CalledProcessError as e:
error_message = e.output.decode()
if "already exists" in error_message or "is already connected" in error_message: