mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-23 10:07:28 +01:00
only update firewall is installed/running
This commit is contained in:
parent
328f47f457
commit
21097826d4
@ -301,10 +301,12 @@ cat > /etc/httpd/conf.modules.d/ssl.conf <<- EOF
|
||||
LoadModule ssl_module lib/httpd/modules/mod_ssl.so
|
||||
EOF
|
||||
|
||||
if firewall-cmd --state >/dev/null 2>&1; then
|
||||
# allow httpd access through firewall
|
||||
firewall-cmd --permanent --add-service=http
|
||||
firewall-cmd --permanent --add-service=https
|
||||
firewall-cmd --reload
|
||||
fi
|
||||
|
||||
# enable and start the httpd service
|
||||
systemctl enable --now httpd
|
||||
|
Loading…
Reference in New Issue
Block a user