Add || true to firewall-cmd

This commit is contained in:
RealStickman 2022-07-20 11:27:44 +02:00 committed by exu
parent 24ac85975b
commit 435d2d8f34

View File

@ -383,7 +383,8 @@ systemctl --user enable autotrash.timer
# 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