mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 11:30:24 +00:00
Small fix for PXC for IP address
This commit is contained in:
@@ -248,7 +248,7 @@ APP="${FORK:-"mysql"}"
|
|||||||
if [ $type = "cluster" -o $APP = "pxc" ]; then
|
if [ $type = "cluster" -o $APP = "pxc" ]; then
|
||||||
# disabled for now because used perl module is not available everywhere and in some distros it returns ipv6 address
|
# disabled for now because used perl module is not available everywhere and in some distros it returns ipv6 address
|
||||||
# ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public')
|
# ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public')
|
||||||
ip=$(hostname -i)
|
ip=$(hostname -i | cut -d" " -f2)
|
||||||
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --query_cache_size=0 --query_cache_type=0 --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --query_cache_size=0 --query_cache_type=0 --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
||||||
else
|
else
|
||||||
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
||||||
|
Reference in New Issue
Block a user