add disable firewall on fedora
This commit is contained in:
parent
86e0404d4b
commit
ce0824b009
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue