Add || true to firewall-cmd
This commit is contained in:
parent
075e69e9e8
commit
77969d7c77
@ -636,7 +636,8 @@ set -e
|
||||
# enable firewall
|
||||
echo "Enabling Firewall"
|
||||
sudo systemctl enable --now firewalld
|
||||
sudo firewall-cmd --zone=public --permanent --remove-service=ssh
|
||||
# || true because firewalld doesn't work without a reboot
|
||||
sudo firewall-cmd --zone=public --permanent --remove-service=ssh || true
|
||||
|
||||
# enable lightdm
|
||||
sudo systemctl enable lightdm
|
||||
|
Loading…
Reference in New Issue
Block a user