Fixed ufw no starting on boot

This commit is contained in:
2020-12-03 12:05:37 +01:00
parent a9f57d3513
commit c49a284e5e
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
##--------------------## ##--------------------##
if [ "$shortdist" = "cent8" ]; then if [ "$shortdist" = "cent8" ]; then
semanage port -a -t ssh_port_t -p tcp 4242 semanage port -a -t ssh_port_t -p tcp 4242
systemctl enable ufw
fi fi
##-------## ##-------##

View File

@@ -47,7 +47,7 @@ elif [ "$shortdist" = "cent8" ]; then
localectl set-keymap us-int localectl set-keymap us-int
useradd -r -U -s /usr/sbin/nologin -d /var/www www-data useradd -r -U -s /usr/sbin/nologin -d /var/www www-data
dnf remove firewalld -y systemctl disable firewald --now
##-------------## ##-------------##
# Postfix # # Postfix #