From 5f1d35a38ad720f8ac03969bd7fa6b05effa79d6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 27 Jul 2022 10:52:04 +0300 Subject: [PATCH] Style(firewall): `ip addr show` -> `ip address show` --- playbooks/roles/debian/firewall/files/etc/network/functions.phd | 2 +- playbooks/roles/redhat/firewall/files/etc/network/functions.phd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/debian/firewall/files/etc/network/functions.phd b/playbooks/roles/debian/firewall/files/etc/network/functions.phd index 08f3718..613089b 100644 --- a/playbooks/roles/debian/firewall/files/etc/network/functions.phd +++ b/playbooks/roles/debian/firewall/files/etc/network/functions.phd @@ -56,6 +56,6 @@ start_firewall() { $IPTABLES -A INPUT -p tcp --sport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT $IPTABLES -A INPUT -p tcp --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT - MY_IP=$(ip -o -4 addr show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') + MY_IP=$(ip -o -4 address show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') for ip in $MY_IP; do my_ip "$ip"; done } diff --git a/playbooks/roles/redhat/firewall/files/etc/network/functions.phd b/playbooks/roles/redhat/firewall/files/etc/network/functions.phd index 08f3718..613089b 100644 --- a/playbooks/roles/redhat/firewall/files/etc/network/functions.phd +++ b/playbooks/roles/redhat/firewall/files/etc/network/functions.phd @@ -56,6 +56,6 @@ start_firewall() { $IPTABLES -A INPUT -p tcp --sport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT $IPTABLES -A INPUT -p tcp --dport 1024:65535 -m state --state ESTABLISHED,RELATED -j ACCEPT - MY_IP=$(ip -o -4 addr show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') + MY_IP=$(ip -o -4 address show up | awk '{split($4,a,/\//); if (a[1] != "127.0.0.1") print a[1]}') for ip in $MY_IP; do my_ip "$ip"; done } -- 2.39.5