From 5043b8a77893c844525df942f3853f511e6d02e2 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Thu, 11 Feb 2021 13:52:32 +0100 Subject: [PATCH] Make sure that firewalld is started before trying to opening ports Signed-off-by: Fabio M. Di Nitto --- anvil.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anvil.spec.in b/anvil.spec.in index 65ed4230..627b3465 100644 --- a/anvil.spec.in +++ b/anvil.spec.in @@ -266,6 +266,8 @@ touch /etc/anvil/type.striker ### TODO: I don't think we need this anymore # Open access for Striker. The database will be opened after initial setup. echo "Opening the web and postgresql ports." +systemctl enable firewalld +systemctl start firewalld firewall-cmd --add-service=http firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https