add disable firewall on fedora

This commit is contained in:
askiiart 2024-12-19 18:44:56 -06:00
parent 86e0404d4b
commit ce0824b009
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -15,6 +15,12 @@ elif command_exists "dnf"; then
sudo dnf remove libreoffice* atril -y
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
# disable firewall (poorly)
sudo firewall-cmd --permanent --zone=trusted --set-target=ACCEPT
lines=$(netstat -i | wc -l)
for interface in $(netstat -i | cut -f 1 -d ' ' | tail --lines $((lines - 2))); do
sudo firewall-cmd --zone=trusted --change-interface=$interface
done
elif command_exists "rpm-ostree"; then
sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo
rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y