Update install-dsmon.sh
This commit is contained in:
@@ -121,7 +121,7 @@ if [ "${SET_SERVERMONID}" = "new" ]; then
|
||||
ADD_SERVERIP=(`hostname -I`)
|
||||
ADD_SERVERIPS=''
|
||||
for nip in "${ADD_SERVERIP[@]}"; do
|
||||
if [[ "${nip}" == *"."* ]]; then
|
||||
if [[ "${nip}" == *"."* ]] && [[ "${nip}" != *"172"* ]]; then
|
||||
if [ "${ADD_SERVERIPS}" = "" ]; then
|
||||
SERVERIPS=${nip}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user