From 27ba5021980095b21f4f1b7dc8facf5cd587bf2d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 15 Jan 2022 19:19:57 -0700 Subject: [PATCH] Add the path /usr/sbin/ to iptables --- debian/resources/postgresql/node.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/resources/postgresql/node.sh b/debian/resources/postgresql/node.sh index b48fee9..5509e2b 100755 --- a/debian/resources/postgresql/node.sh +++ b/debian/resources/postgresql/node.sh @@ -74,8 +74,8 @@ fi #iptables rules if [ .$iptables_add = ."y" ]; then for node in $nodes; do - iptables -A INPUT -j ACCEPT -p tcp --dport 5432 -s ${node}/32 - iptables -A INPUT -j ACCEPT -p tcp --dport 22000 -s ${node}/32 + /usr/sbin/iptables -A INPUT -j ACCEPT -p tcp --dport 5432 -s ${node}/32 + /usr/sbin/iptables -A INPUT -j ACCEPT -p tcp --dport 22000 -s ${node}/32 done apt-get remove iptables-persistent -y echo iptables-persistent iptables-persistent/autosave_v4 boolean true | debconf-set-selections