Add || true to firewall-cmd

This commit is contained in:
RealStickman 2022-07-20 11:27:44 +02:00
parent 075e69e9e8
commit 77969d7c77

View File

@ -636,7 +636,8 @@ set -e
# enable firewall # enable firewall
echo "Enabling Firewall" echo "Enabling Firewall"
sudo systemctl enable --now firewalld 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 # enable lightdm
sudo systemctl enable lightdm sudo systemctl enable lightdm