From 36d040bf83f4b2b2703b22a485dfa2636fc0b516 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:06:49 -0700 Subject: [PATCH] separate ipv4 and ipv6 ip addresses --- debian/resources/postgresql/node.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/resources/postgresql/node.sh b/debian/resources/postgresql/node.sh index d5b3b3a..71aacac 100755 --- a/debian/resources/postgresql/node.sh +++ b/debian/resources/postgresql/node.sh @@ -11,7 +11,12 @@ now=$(date +%Y-%m-%d) #show this server's addresses server_address=$(hostname -I); +server_address=$(hostname -I | awk '{print $1}') echo "This Server Address: $server_address" +server_address_v6=$(hostname -I | awk '{print $2}') +echo "\nThis Server's IP Addresses" +echo "IPv4: $server_address" +echo "IPv6: $server_address_v6" #nodes addresses read -p "Enter all Node IP Addresses: " nodes @@ -33,7 +38,7 @@ fi if [ .$replication_method = ."bdr" ]; then #determine which database to replicate read -p 'Replicate the FusionPBX Database (y,n): ' system_replicate - + #determine which database to replicate read -p 'Replicate the FreeSWITCH Database (y,n): ' switch_replicate fi