Browse Source

changes

pull/3015/head
Daniel Gibbs 5 years ago
parent
commit
9b56c093a1
  1. 7
      lgsm/functions/check_ip.sh
  2. 8
      lgsm/functions/command_dev_query_raw.sh

7
lgsm/functions/check_ip.sh

@ -8,6 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
info_config.sh
info_distro.sh # for dev
info_parms.sh
if [ ! -f "/bin/ip" ]; then
@ -20,11 +21,11 @@ getipwc=$(${ipcommand} -o -4 addr | awk '{print $4}' | grep -oe '\([0-9]\{1,3\}\
# Check if server has m ultiple IP addresses
# If the ip variable is set by user
if [ "${ip}" != "0.0.0.0" ]||[ "${ip}" != "" ]; then
queryip=( "${ip}" )
if [ "${ip}" != "0.0.0.0" ]&&[ "${ip}" != "" ]; then
queryips=( "${ip}" )
# If ip is not set by user
else
queryip=( "${getip}" )
queryips=( "${getip}" )
fi
echo "###### DEV IP CHECK ######"

8
lgsm/functions/command_dev_query_raw.sh

@ -13,10 +13,16 @@ check.sh
info_config.sh
info_parms.sh
for queryip in "${queryips[@]}"
do
echo -e ""
echo -e "Query Port - Raw Output"
echo -e "=================================================================="
echo -e ""
echo -e "QUERY IP"
echo -e "${queryip}"
echo -e "================================="
echo -e "Ports"
echo -e "================================="
echo -e ""
@ -81,6 +87,6 @@ if [ "${querystatus}" == "0" ]; then
else
echo -e "TCP query FAIL"
fi
done
exitcode=0
core_exit.sh

Loading…
Cancel
Save